@Test
public void addPointerSegment() {

    SchemaLocation underTest = SchemaLocation.empty();
    SchemaLocation actual = underTest.addPointerSegment("key");
    assertEquals("#/key", actual.toString());
    assertEquals("#", underTest.toString());
}