@Test
public void testGetFromUrlFailOnNonProvidedAndAssignedUsers()
{

    exception.expect( IllegalQueryException.class );
    exception.expectMessage( "Assigned User uid(s) cannot be specified if selectionMode is not PROVIDED" );
    TrackedEntityInstanceCriteria criteria = new TrackedEntityInstanceCriteria();
    criteria.setAssignedUser( "user-1;user-2" );
    criteria.setAssignedUserMode( AssignedUserSelectionMode.CURRENT );
    trackedEntityCriteriaMapper.map( criteria );
}