Interface extends InnerInterface implements CompilationUnit { @Override public void addFileCommentLine(String commentLine) { fileCommentLines.add(commentLine); } Interface(FullyQualifiedJavaType type);  Interface(String type); @Override Set<FullyQualifiedJavaType> getImportedTypes(); @Override void addImportedType(FullyQualifiedJavaType importedType); @Override void addFileCommentLine(String commentLine); @Override List<String> getFileCommentLines(); @Override void addImportedTypes(Set<FullyQualifiedJavaType> importedTypes); @Override Set<String> getStaticImports(); @Override void addStaticImport(String staticImport); @Override void addStaticImports(Set<String> staticImports); @Override R accept(CompilationUnitVisitor<R> visitor);  }
@Test public void testAddFileCommentLine() { Interface interfaze = new Interface("com.foo.UserInterface"); interfaze.addFileCommentLine("test"); assertNotNull(interfaze.getFileCommentLines()); assertEquals(1, interfaze.getFileCommentLines().size()); assertEquals("test", interfaze.getFileCommentLines().get(0)); }