@Test
public void testGetDuplicateQueryItems()
{

    QueryItem iA = new QueryItem( createDataElement( 'A', new CategoryCombo() ) );
    QueryItem iB = new QueryItem( createDataElement( 'B', new CategoryCombo() ) );
    QueryItem iC = new QueryItem( createDataElement( 'B', new CategoryCombo() ) );
    QueryItem iD = new QueryItem( createDataElement( 'D', new CategoryCombo() ) );
    EventQueryParams params = new EventQueryParams.Builder()
        .addItem( iA )
        .addItem( iB )
        .addItem( iC )
        .addItem( iD ).build();
    List<QueryItem> duplicates = params.getDuplicateQueryItems();
    assertEquals( 1, duplicates.size() );
    assertTrue( duplicates.contains( iC ) );
}