@Test
public void loadsTraitFromModel() {

    Model model = Model.assembler()
            .discoverModels(getClass().getClassLoader())
            .addImport(TestRunnerTest.class.getResource("errorfiles/valid-integration.json"))
            .assemble()
            .unwrap();
    MockIntegrationTrait trait = model.expectShape(ShapeId.from("ns.foo#Operation"))
            .getTrait(MockIntegrationTrait.class)
            .get();
    assertThat(trait.toBuilder().build(), equalTo(trait));
    // Test round-tripping from/to node.
    assertThat(new MockIntegrationTrait.Provider().createTrait(ShapeId.from("ns.foo#Operation"), trait.toNode()),
               equalTo(trait));
}