@Test
public void verifyCriteriaMappingFailOnUserNonInOuHierarchy()
{

    exception.expect( IllegalQueryException.class );
    exception.expectMessage( "Organisation unit is not part of the search scope: " + organisationUnit.getUid() );
    // Force Current User Service to return a User without search org unit
    ReflectionTestUtils.setField( trackedEntityCriteriaMapper, "currentUserService",
        new MockCurrentUserService( createUser( "testUser2" ) ) );
    TrackedEntityInstanceCriteria criteria = new TrackedEntityInstanceCriteria();
    criteria.setOu( organisationUnit.getUid() );
    trackedEntityCriteriaMapper.map( criteria );
}