@Test
void shouldExtractQueryKeys()
{

    List<String> keys = asList( "hello", " ", "world", "!" );
    Map<String, Integer> keyIndex = new HashMap<>();
    keyIndex.put( "hello", 0 );
    keyIndex.put( " ", 1 );
    keyIndex.put( "world", 2 );
    keyIndex.put( "!", 3 );
    QueryKeys extracted = extractor.extractQueryKeys( singletonMap( "fields", value( keys ) ) );
    assertEquals( keys, extracted.keys() );
    assertEquals( keyIndex, extracted.keyIndex() );
}