### Question:
PackageClass { public PackageClass append(String addName) { return new PackageClass(pkg, fileName + addName); } protected  PackageClass(String fullyQualifiedName);  PackageClass(String pkg, String fileName);  PackageClass(Class<?> inputClass); String getClassName(); String getFullyQualifiedName(); String getPackage(); PackageClass append(String addName); PackageClass prepend(String prepend); PackageClass replaceName(String replacement); String toString(); @Override boolean equals(Object obj); @Override int hashCode(); String getCanonicalName(); PackageClass replacePackage(String inputPackage);  }### Answer:
@Test public void testAppend() { PackageClass packageClass = new PackageClass(FULLY_QUALIFIED_NAME).append(TEST_NAME); assertEquals(FULLY_QUALIFIED_NAME + TEST_NAME, packageClass.getCanonicalName()); }