@Test
void testMapExtraction()
{

    // GIVEN
    InternalRecord record = createRecord();
    Function<Value,Integer> addOne = value -> value.asInt() + 1;
    // WHEN
    Map<String,Integer> map = Extract.map( record, addOne );
    // THEN
    assertThat( map.keySet(), contains( "k1", "k2" ) );
    assertThat( map.get( "k1" ), equalTo( 1 ) );
    assertThat( map.get( "k2" ), equalTo( 2 ) );
}