Prelude { public static boolean isPreludeShape(ToShapeId id) { return id.toShapeId().getNamespace().equals(NAMESPACE); } private  Prelude(); static boolean isPreludeShape(ToShapeId id); static boolean isPublicPreludeShape(ToShapeId id); static final String NAMESPACE; }
@Test public void checksIfShapeIdIsInPrelude() { assertTrue(Prelude.isPreludeShape(ShapeId.from("smithy.api#String"))); assertTrue(Prelude.isPreludeShape(ShapeId.from("smithy.api#PrimitiveLong"))); assertTrue(Prelude.isPreludeShape(ShapeId.from("smithy.api#Foo"))); assertFalse(Prelude.isPreludeShape(ShapeId.from("foo.baz#Bar"))); }