Interface extends InnerInterface implements CompilationUnit { @Override public void addStaticImports(Set<String> staticImports) { this.staticImports.addAll(staticImports); } 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 testAddStaticImports() { Interface interfaze = new Interface("com.foo.UserInterface"); Set<String> staticImports = new HashSet<>(); staticImports.add("com.foo.StaticUtil1"); staticImports.add("com.foo.StaticUtil2"); interfaze.addStaticImports(staticImports); assertNotNull(interfaze.getStaticImports()); assertEquals(2, interfaze.getStaticImports().size()); assertTrue(interfaze.getStaticImports().contains("com.foo.StaticUtil1")); assertTrue(interfaze.getStaticImports().contains("com.foo.StaticUtil2")); }