try
{
QueryBuilder<TraceRecord> builder = module.newQueryBuilder( TraceRecord.class );
Query<TraceRecord> query = uow.newQuery( builder );
// IS sorting needed??
TraceRecord template = templateFor( TraceRecord.class );
query.orderBy( orderBy( template.methodName() ) );
Iterator<TraceRecord> result = query.iterator();
assertTrue( result.hasNext() );
TraceRecord rec1 = result.next();
assertEquals( "doSomethingImportant", rec1.methodName().get() );
assertTrue( result.hasNext() );
TraceRecord rec2 = result.next();
assertEquals( "doSomethingModeratelyImportant", rec2.methodName().get() );
assertFalse( result.hasNext() );
uow.complete();
}
catch( Exception e )
{