long count = filterService.createFilterQuery().count();
assertEquals(0, count);
}
public void testReadFilterNotPermitted() {
Filter filter = createTestFilter();
long count = filterService.createFilterQuery().count();
assertEquals(0, count);
Filter returnedFilter = filterService.createFilterQuery().filterId(filter.getId()).singleResult();
assertNull(returnedFilter);
try {
filterService.getFilter(filter.getId());
fail("Exception expected");