@Test
public void usesCustomPointerAndOmitsSlashWhenNecessary() {

    JsonSchemaConfig config = new JsonSchemaConfig();
    config.setDefinitionPointer("#/components/schemas");
    RefStrategy ref = RefStrategy
            .createDefaultStrategy(Model.builder().build(), config, propertyNamingStrategy);
    String pointer = ref.toPointer(ShapeId.from("smithy.example#Foo"));
    assertThat(pointer, equalTo("#/components/schemas/Foo"));
}