@Test
public void loadsEventSource() {

    Node node = Node.parse("{\"sdkId\": \"Foo\", \"cloudTrailEventSource\": \"foo.amazonaws.com\"}");
    TraitFactory provider = TraitFactory.createServiceFactory();
    Optional<Trait> trait = provider.createTrait(ServiceTrait.ID, ShapeId.from("ns.foo#foo"), node);
    assertTrue(trait.isPresent());
    assertThat(trait.get(), instanceOf(ServiceTrait.class));
    ServiceTrait serviceTrait = (ServiceTrait) trait.get();
    assertThat(serviceTrait.getCloudTrailEventSource(), equalTo("foo.amazonaws.com"));
}