FullyQualifiedClassName { public String getName() { return name; } FullyQualifiedClassName(String name); String getName(); @Override final boolean equals(Object o); @Override final int hashCode();  }
@Test void getNameShouldReturnSuppliedValue() { String name = "org.apache.MyClass"; assertThat(new FullyQualifiedClassName(name).getName()) .isEqualTo(name); }
@Test void getNameShouldReturnSuppliedValueWhenOnlyAClassName() { String name = "MyClass"; assertThat(new FullyQualifiedClassName(name).getName()) .isEqualTo(name); }