### Question:
InterfaceReport { public Set<Class<?>> getUntestedInterfaces() { final Set<Class<?>> retval = new TreeSet<Class<?>>( CLASS_NAME_COMPARATOR ); for (final InterfaceInfo info : getInterfaceInfoMap().values()) { if (info.getTests().isEmpty() && (info.getName().getDeclaredMethods().length > 0)) { retval.add( info.getName() ); } } return retval; } InterfaceReport(final String[] packages, ClassPathFilter filter, final ClassLoader classLoader); Collection<InterfaceInfo> getInterfaceInfoCollection(); Collection<Class<?>> getPackageClasses(); List<Throwable> getErrors(); Set<Class<?>> getUntestedInterfaces(); Set<Class<?>> getUnImplementedTests(); ClassPathFilter getClassFilter();  }### Answer:
@Test public void testGetUntestedInterfaces() { interfaceReport = new InterfaceReport( packages, null, classLoader ); final Set<Class<?>> classes = interfaceReport.getUntestedInterfaces(); final Set<String> names = getClassNames( classes ); assertEquals( 1, names.size() ); assertTrue( names.contains( "org.xenei.junit.contract.exampleTests.F" ) ); }
@Test public void getUntestedInterfacesTest_Filtered() { final ClassPathFilter filter = new NotClassFilter( new OrClassFilter( new NameClassFilter( "org.xenei.junit.contract.exampleTests.CImpl3" ), new NameClassFilter( "org.xenei.junit.contract.exampleTests.DTImplSuite$ForceA" ) ) ); interfaceReport = new InterfaceReport( badPackages, filter, classLoader ); final Set<Class<?>> classes = interfaceReport.getUntestedInterfaces(); final Set<String> names = getClassNames( classes ); assertEquals( 1, names.size() ); assertTrue( names.contains( "org.xenei.junit.contract.exampleTests.F" ) ); }