@Test
public void testAsPlainKey()
{

    String key = new QueryKey()
        .add( "dimension", "dx" )
        .add( "dimension", "pe" )
        .add( "filter", "ou" )
        .add( "aggregationType", AggregationType.SUM )
        .add( "skipMeta", true )
        .asPlainKey();
    assertEquals( "dimension:dx-dimension:pe-filter:ou-aggregationType:SUM-skipMeta:true", key );
    key = new QueryKey()
        .add( "dimension", "dx" )
        .add( "filter", "pe" )
        .add( "filter", "ou" )
        .add( "aggregationType", AggregationType.AVERAGE )
        .add( "skipMeta", true )
        .asPlainKey();
    assertEquals( "dimension:dx-filter:pe-filter:ou-aggregationType:AVERAGE-skipMeta:true", key );
}