@Test
public void testGetItemLegends()
{

    Legend leA = createLegend( 'A', 0d, 1d );
    Legend leB = createLegend( 'B', 1d, 2d );
    LegendSet lsA = createLegendSet( 'A', leA, leB );
    QueryItem qiA = new QueryItem( deA, lsA, deA.getValueType(), deA.getAggregationType(), null );
    EventQueryParams params = new EventQueryParams.Builder()
        .addItem( qiA )
        .build();
    Set<Legend> expected = Sets.newHashSet( leA, leB );
    assertEquals( expected, params.getItemLegends() );
}