### Question:
Repository implements IModeShapeObject { public String getName() { return this.name; } 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 shouldNotBeEqualIfSameNameButDifferentServers() { assertThat(REPOSITORY1, is(not(equalTo(new Repository(REPOSITORY1.getName(), SERVER2))))); }