@Test
public void verifyCriteriaMappingFailOnMissingTrackerEntityType()
{

    exception.expect( IllegalQueryException.class );
    exception.expectMessage( "Tracked entity type does not exist: " + trackedEntityTypeA.getUid() + "A" );
    TrackedEntityInstanceCriteria criteria = new TrackedEntityInstanceCriteria();
    criteria.setTrackedEntityType( trackedEntityTypeA.getUid() + "A" );
    trackedEntityCriteriaMapper.map( criteria );
}