@Test
public void returnsAppropriateType() {

    UnionShape shape = UnionShape.builder()
            .id("ns.foo#bar")
            .addMember(MemberShape.builder()
                    .id("ns.foo#bar$baz")
                    .target("ns.foo#bam")
                    .build())
            .build();
    assertEquals(shape.getType(), ShapeType.UNION);
}