StringShape extends SimpleShape implements ToSmithyBuilder<StringShape> { public static Builder builder() { return new Builder(); } private  StringShape(Builder builder); static Builder builder(); @Override Builder toBuilder(); @Override R accept(ShapeVisitor<R> cases); @Override Optional<StringShape> asStringShape();  }
@Test public void returnsAppropriateType() { StringShape shape = StringShape.builder().id("ns.foo#bar").build(); assertEquals(shape.getType(), ShapeType.STRING); }
@Test public void mustNotContainMembersInShapeId() { Assertions.assertThrows(SourceException.class, () -> { StringShape.builder().id("ns.foo#bar$baz").build(); }); }