Field field = Test.class.getDeclaredField("map");
//When
final MapCodec codec = factory.parseMapField(createContext(field));
//Then
assertThat(codec.sourceKeyType()).isSameAs(Long.class);
assertThat(codec.targetKeyType()).isSameAs(String.class);
assertThat(codec.sourceValueType()).isSameAs(NamingStrategy.class);
assertThat(codec.targetValueType()).isSameAs(String.class);
}