Key implements IKey { @Override public String toString() { return identifier; } Key(final String identifier); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void checkToString() throws InvalidArgumentException { String value = "key"; IKey key = new Key(value); assertEquals(key.toString(), value); }