### Question:
Workspace implements IModeShapeObject { public Repository getRepository() { return this.repository; } Workspace( String name,
                      Repository repository ); @Override boolean equals( Object obj ); String getName(); Repository getRepository(); Server getServer(); String getShortDescription(); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void shouldHaveRepository() { assertThat(workspace1.getRepository(), is(sameInstance(repository))); assertThat(workspace2.getRepository(), is(sameInstance(repository))); }