Name implements Comparable<Name> { @Override public String toString() { return originalName; } Name(String name); boolean isEmpty(); @Deprecated String toLowerCase(); @Deprecated String toUpperCase(); @Override int compareTo(Name o); int compareTo(String other); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static final Name EMPTY; }
@Test public void maintainOriginalCase() { assertEquals("HeLLO", new Name("HeLLO").toString()); }