### Question:
Note extends AbstractEntity { @Override public String toString() { return getText(); } Note();  Note(Source source);  Note(Source source, String text); @Override Set<? extends Entity> getDependencies(); void setText(String text); String getText(); @Override String toString(); Source getSource(); void setSource(Source source); boolean equals(Object o); boolean deepEquals(Entity other); int hashCode(); static final String PROPERTY_TEXT; static final String PROPERTY_SOURCE; }### Answer:
@Test public void testToString() { Note n = new Note(Source.CLINICALTRIALS, "test text"); assertEquals("test text", n.toString()); }