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<?>>(), 0, 1000);
assertEquals(5, p.getItems().size());
assertEquals(5, p.getTotalHits());
assertEquals("Context.PROVIDER_URL in server jndi.properties, url=localhost:1099", p.getItems().get(0).get(Log4JFieldProvider.FIELD_MESSAGE));
assertEquals("JBossTS Transaction Service (JTA version) - JBoss Inc.", p.getItems().get(1).get(Log4JFieldProvider.FIELD_MESSAGE));
assertEquals("Setting up property manager MBean and JMX layer", p.getItems().get(2).get(Log4JFieldProvider.FIELD_MESSAGE));