@Test
public void addsStructureMembers() {

    StringShape string = StringShape.builder().id("foo.bar#String").build();
    MemberShape member = MemberShape.builder()
            .id("foo.bar#Scripts$pages")
            .target("foo.bar#String")
            .build();
    StructureShape struct = StructureShape.builder()
            .id("foo.bar#Scripts")
            .addMember(member)
            .build();
    Model model = Model.builder().addShapes(string, struct, member).build();
    RefStrategy ref = RefStrategy
            .createDefaultStrategy(model, new JsonSchemaConfig(), propertyNamingStrategy);
    assertThat(ref.toPointer(struct.getId()), equalTo("#/definitions/Scripts"));
    assertThat(ref.toPointer(member.getId()), equalTo("#/definitions/Scripts/properties/pages"));
}