loadLogFile("sample-1.log.xml");
createLogResourceWithPK("UTF-8", Locale.getDefault(), getTimeZone());
indexService.synchronize(getLogResource(), null);
IQueryContext ctx = indexService.createQueryContext(getLogResource());
try {
ResultPage p = indexService.query(ctx, new LinkedList<ARestriction<?>>(), 2, 1000);
assertEquals(3, p.getItems().size());
assertEquals("Setting up property manager MBean and JMX layer", p.getItems().get(0).get(Log4JFieldProvider.FIELD_MESSAGE));
assertEquals("Starting recovery manager", p.getItems().get(1).get(Log4JFieldProvider.FIELD_MESSAGE));
assertEquals("Recovery manager started", p.getItems().get(2).get(Log4JFieldProvider.FIELD_MESSAGE));
assertEquals(5, p.getTotalHits());