@Test
public void addsMapMembers() {

    StringShape string = StringShape.builder().id("foo.bar#String").build();
    MemberShape key = MemberShape.builder()
            .id("foo.bar#Scripts$key")
            .target("foo.bar#String")
            .build();
    MemberShape value = MemberShape.builder()
            .id("foo.bar#Scripts$value")
            .target("foo.bar#String")
            .build();
    MapShape map = MapShape.builder()
            .id("foo.bar#Scripts")
            .key(key)
            .value(value)
            .build();
    Model model = Model.builder().addShapes(string, map, key, value).build();
    RefStrategy ref = RefStrategy
            .createDefaultStrategy(model, new JsonSchemaConfig(), propertyNamingStrategy);
    assertThat(ref.toPointer(key.getId()), equalTo("#/definitions/Scripts/propertyNames"));
    assertThat(ref.toPointer(value.getId()), equalTo("#/definitions/Scripts/additionalProperties"));
}