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