### Question:
PsmResource { public String getName() { return name; } PsmResource(final String name); String getName(); @Override String toString();  }### Answer:
@Test public void testGetName() { final PsmResource resource = new PsmResource("test"); assertEquals("test", resource.getName()); assertEquals("test", resource.toString()); }
@Test public void testTrim() { final PsmResource resource = new PsmResource("test "); assertEquals("test", resource.getName()); }