### Question:
Repository implements IModeShapeObject { public Server getServer() { return this.server; } Repository( String name,
                       Server server ); @Override boolean equals( Object obj ); String getName(); Server getServer(); String getShortDescription(); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void shouldNotBeEqualIfSameServerButDifferentName() { assertThat(REPOSITORY1, is(not(equalTo(new Repository(NAME2, REPOSITORY1.getServer()))))); }