@Test
public void verifyCriteriaMappingFailOnMissingAttribute()
{

    exception.expect( IllegalQueryException.class );
    exception.expectMessage( "Attribute does not exist: missing" );
    TrackedEntityInstanceCriteria criteria = new TrackedEntityInstanceCriteria();
    criteria.setAttribute( newHashSet( attrD.getUid(), attrE.getUid(), "missing" ) );
    trackedEntityCriteriaMapper.map( criteria );
}