@Test
public void stripsNonAlphanumericCharactersWhenRequested() {

    JsonSchemaConfig config = new JsonSchemaConfig();
    config.setAlphanumericOnlyRefs(true);
    RefStrategy ref = RefStrategy
            .createDefaultStrategy(Model.builder().build(), config, propertyNamingStrategy);
    String pointer = ref.toPointer(ShapeId.from("smithy.example#Foo_Bar"));
    assertThat(pointer, equalTo("#/definitions/FooBar"));
}