@Test
public void modelEquality() {

    Model modelA = Model.builder()
            .putMetadataProperty("foo", Node.from("baz"))
            .addShape(StringShape.builder().id("ns.foo#baz").build())
            .build();
    Model modelB = Model.builder()
            .putMetadataProperty("foo", Node.from("baz"))
            .build();
    assertThat(modelA, equalTo(modelA));
    assertThat(modelA, not(equalTo(modelB)));
    assertThat(modelA, not(equalTo(null)));
}