@Test
public void addMemberWithTarget() {

    StructureShape shape = StructureShape.builder()
            .id("ns.foo#bar")
            .addMember("foo", ShapeId.from("ns.foo#bam"))
            .build();
    assertEquals(shape.getMember("foo").get(),
                 MemberShape.builder().id(shape.getId().withMember("foo")).target("ns.foo#bam").build());
}