@Test
public void getLtQuery()
{

    Query query = Query.from( schemaService.getDynamicSchema( DataElement.class ) );
    query.add( Restrictions.lt( "created", Year.parseYear( "2003" ).getStart() ) );
    List<? extends IdentifiableObject> objects = queryEngine.query( query );
    assertEquals( 2, objects.size() );
    assertTrue( collectionContainsUid( objects, "deabcdefghA" ) );
    assertTrue( collectionContainsUid( objects, "deabcdefghB" ) );
}