WXDomManager { public void removeDomStatement(String instanceId) { if (!WXUtils.isUiThread()) { throw new WXRuntimeException("[WXDomManager] removeDomStatement"); } final WXDomStatement statement = mDomRegistries.remove(instanceId); if (statement != null) { post(new Runnable() { @Override public void run() { statement.destroy(); } }); } } WXDomManager(WXRenderManager renderManager); void sendEmptyMessageDelayed(int what, long delayMillis); void sendMessage(Message msg); void removeDomStatement(String instanceId); void post(Runnable task); void destroy(); void addRule(final String type,final JSONObject jsonObject);  }
@Test public void testRemoveDomStatement() throws Exception { dm.removeDomStatement(instance.getInstanceId()); }