@Test
public void getFullClassName() {

    String className = "ClassName";
    String packageName = "apackage";
    PackageDeclaration packageDeclaration = new PackageDeclaration();
    packageDeclaration.setName(new Name(packageName));
    ClassOrInterfaceDeclaration classOrInterfaceDeclaration = new ClassOrInterfaceDeclaration();
    classOrInterfaceDeclaration.setName(className);
    CompilationUnit compilationUnit = new CompilationUnit();
    compilationUnit.setPackageDeclaration(packageDeclaration);
    compilationUnit.setTypes(NodeList.nodeList(classOrInterfaceDeclaration));
    String retrieved = JavaParserUtils.getFullClassName(compilationUnit);
    String expected = packageName + "." + className;
    assertEquals(expected, retrieved);
}