@Test
public void testRegisterModule() throws Exception {

  assertTrue(WXSDKEngine.registerModule("test", TestModule.class));
  assertFalse(WXSDKEngine.registerModule(null,TestModule.class));
  assertFalse(WXSDKEngine.registerModule("test",null));
  assertFalse(WXSDKEngine.registerModuleWithFactory(null,new TestModuleFactory(TestModule.class),true));
  assertTrue(WXSDKEngine.registerModuleWithFactory("test1",new TestModuleFactory(TestModule.class),true));
  assertFalse(WXSDKEngine.registerModuleWithFactory("test1",null,true));
}