@Test
public void testIsOrgUnitFieldValid()
{

    QueryItem iA = new QueryItem( createDataElement( 'A', new CategoryCombo() ) );
    EventQueryParams params = new EventQueryParams.Builder()
        .withProgram( prA )
        .withOrgUnitField( deD.getUid() )
        .addItem( iA ).build();
    assertTrue( params.orgUnitFieldIsValid() );
    params = new EventQueryParams.Builder()
        .withProgram( prA )
        .withOrgUnitField( "someInvalidOrgUnitField" )
        .addItem( iA ).build();
    assertFalse( params.orgUnitFieldIsValid() );
}