### Question:
ViewArtifact implements Serializable { @Override public String toString() { return this.artifact; } ViewArtifact(String artifact); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test public void shouldHaveToString() throws Exception { ViewArtifact v = new ViewArtifact("test.xhtml"); assertThat(v.toString(), is(equalTo("test.xhtml"))); }