### Question:
ElementName implements Serializable, Comparable<ElementName> { public ElementName getParent() { final int lastSeperator = this.name.lastIndexOf('/'); if (lastSeperator != -1) { return new ElementName(this.name.substring(0, lastSeperator)); } return new ElementName(""); } 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 getPackageShouldReturnEmptyPackageWhenClassInPackageDefault() { assertThat(new ElementName("")).isEqualTo(new ElementName("Foo").getParent()); }
@Test public void getPackageShouldReturnPackageWhenClassWithinAPackage() { assertThat(new ElementName("com.github.fburato.highwheelmodules.model.bytecode")) .isEqualTo(new ElementName(ElementNameTest.class).getParent()); }