assertEquals("widgets", datas.get(1).getResources().get(0));
}
@Test
public void testGetRequestsAdvancedFilter() throws Exception {
Filter filter = new Filter("path", "/four", Comparison.EQ)
.or(new Filter("service", "foo", Comparison.EQ).and(
new Filter("resource", Arrays.asList("widgets"), Comparison.IN)));
List<RequestData> datas = dao.getRequests(new Query().filter(filter));
assertEquals(2, datas.size());
assertCovered(datas, 4, 11);
}