FieldName implements IFieldName, Comparable<IFieldName> { @Override public String toString() { return name; } FieldName(final String name); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override int compareTo(final IFieldName that);  }
@Test public void checkToString() throws Exception { String name = "test"; IFieldName fieldName = new FieldName(name); assertEquals(name, fieldName.toString()); }