@Test
public void convertsShapeToBuilder() {

    Shape shape1 = StringShape.builder().id("ns.foo#baz").build();
    Shape shape2 = Shape.shapeToBuilder(shape1).build();
    StringShape shape3 = Shape.shapeToBuilder(StringShape.builder().id("ns.foo#baz").build()).build();
    assertThat(shape1, equalTo(shape2));
    assertThat(shape1, equalTo(shape3));
}