RNInstabugChatsModule extends ReactContextBaseJavaModule { @ReactMethod public void show() { MainThreadHandler.runOnMainThread(new Runnable() { @Override public void run() { Chats.show(); } }); } RNInstabugChatsModule(ReactApplicationContext reactApplicationContext); @Nonnull @Override String getName(); @ReactMethod void setEnabled(final boolean isEnabled); @ReactMethod void show();  }
@Test public void given$showChats_whenQuery_thenShouldCallNativeApi() { PowerMockito.mockStatic(Chats.class); chatsModule.show(); PowerMockito.verifyStatic(VerificationModeFactory.times(1)); Chats.show(); }