### Question:
MethodCallWhiteAndBlacklistFilter implements MethodCallFilter { @Override public boolean use(MethodCall data) { return mFilter.checkPrefix(data.getName()); }  @Override void init(Config config); @Override boolean use(MethodCall data);  }### Answer:
@Test public void testDefaultMethodFilter() throws BadConfigException, IOException { Config config = getXmlConfig("/method-call-white-and-blacklist-filter.xml"); MethodCallFilter filter = config.getComponentAndInit("method-call-filter", MethodCallFilter.class); assertNotNull(filter); App app = new App(); assertFalse(filter.use(new MethodCall("com.oprisnik.semdroid.test.Class-onReceive", new String[0], app))); assertTrue(filter.use(new MethodCall("java.math.BigInteger-onReceive", new String[0], app))); }