@Test
public void listShape() {

    Shape string = StringShape.builder().id("ns.foo#String").build();
    ListShape list = ListShape.builder()
            .id("ns.foo#name")
            .member(string.getId())
            .build();
    Model model = Model.builder().addShape(list).addShape(string).build();
    NeighborVisitor neighborVisitor = new NeighborVisitor(model);
    MemberShape memberTarget = list.getMember();
    List<Relationship> relationships = list.accept(neighborVisitor);
    assertThat(relationships, contains(Relationship.create(list, RelationshipType.LIST_MEMBER, memberTarget)));
}