@Test
public void testGetExhibitions()
{
LOG.debug("<-- start of new test-case");
parse("/xml/rce/groups.xml");
List<Exhibition> found;
Set<String> ids;
nodeService.setCurrentDate(LocalDate.of(2014, Month.JULY, 1));
found = nodeService.getExhibitions(null, 0, 100);
log(found);
assertEquals("unexpected number of exhibitions found", 2, found.size());
ids = found.stream().map(e -> e.getId()).collect(Collectors.toSet());
nodeService.setCurrentDate(LocalDate.of(2015, Month.MARCH, 7));
found = nodeService.getExhibitions(null, 0, 100);
log(found);
assertEquals("unexpected number of exhibitions found", 2, found.size());
ids = found.stream().map(e -> e.getId()).collect(Collectors.toSet());
nodeService.setCurrentDate(LocalDate.of(2015, Month.MARCH, 30));
found = nodeService.getExhibitions(null, 0, 100);
log(found);
assertEquals("unexpected number of exhibitions found", 1, found.size());
ids = found.stream().map(e -> e.getId()).collect(Collectors.toSet());
}