@Test
public void checksIfAllDefineNames() {

    Node node = Node.parse("[{\"value\": \"foo\", \"name\": \"FOO\"}, "
                           + "{\"value\": \"bam\", \"name\": \"BAM\"}]");
    EnumTrait trait = new EnumTrait.Provider().createTrait(ShapeId.from("ns.foo#baz"), node);
    assertThat(trait.hasNames(), is(true));
}