@Test
public void usesRefForStructureMembers() {

    StructureShape baz = StructureShape.builder()
            .id("foo.bar#Baz")
            .addMember("bam", ShapeId.from("foo.bar#Bam"))
            .build();
    StructureShape bam = StructureShape.builder()
            .id("foo.bar#Bam")
            .build();
    Model model = Model.builder().addShapes(baz, bam).build();
    RefStrategy ref = RefStrategy
            .createDefaultStrategy(model, new JsonSchemaConfig(), propertyNamingStrategy);
    assertThat(ref.toPointer(baz.getMember("bam").get().getId()), equalTo("#/definitions/Bam"));
}