@Test public void test_Remove_DefaultInspectorModulesBuilder() throws IOException { final Class<Debugger> debuggerClass = Debugger.class; Iterable<ChromeDevtoolsDomain> domains = new Stetho.DefaultInspectorModulesBuilder(mActivity) .remove(debuggerClass.getName()) .finish(); boolean containsDebugggerDomain = false; for (ChromeDevtoolsDomain domain : domains) { if (domain.getClass().equals(debuggerClass)) { containsDebugggerDomain = true; break; } } assertFalse(containsDebugggerDomain); }