@Test
public void testIsOrgUnitFieldValidWithMultipleProgramIndicator()
{

    QueryItem iA = new QueryItem( createDataElement( 'A', new CategoryCombo() ) );
    ProgramIndicator programIndicatorA = createProgramIndicator('A', prA, "", "");
    // this PI has 0 Data Element of type OrgUnit -> test should fail
    ProgramIndicator programIndicatorB = createProgramIndicator('B', prB, "", "");
    EventQueryParams params = new EventQueryParams.Builder()
            .withProgram( null )
            .withOrgUnitField( deD.getUid() )
            .addItem( iA )
            .addItemProgramIndicator( programIndicatorA )
            .addItemProgramIndicator( programIndicatorB )
            .build();
    assertFalse( params.orgUnitFieldIsValid() );
}