### Question:
ResourceComponent implements Resource, Serializable { @Override public String toString() { return id; } ResourceComponent(String id);  ResourceComponent(String id, URI uri); @Override boolean equals(Object o); @Override int hashCode(); String getID(); URI getURI(); @Override String toString();  }### Answer:
@Test public void testToString() throws Exception { ResourceComponent testResource = new ResourceComponent("test"); assertEquals("test", testResource.toString()); }