### Question:
ElementName implements Serializable, Comparable<ElementName> { @Override public String toString() { return asJavaName(); } ElementName(final String name);  ElementName(final String name, final boolean intern);  ElementName(final Class<?> clazz); static ElementName fromString(final String clazz); static ElementName fromClass(final Class<?> clazz); String asJavaName(); String asInternalName(); ElementName getNameWithoutPackage(); ElementName getParent(); ElementName withoutPrefixChars(final int prefixLength); ElementName withoutSuffixChars(final int suffixLength); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); int compareTo(final ElementName o);  }### Answer:
@Test public void shouldDisplayJavaNameInToString() { final ElementName testee = new ElementName("com/foo/bar"); assertThat("com.foo.bar").isEqualTo(testee.toString()); }