RNInstabugFeatureRequestsModule extends ReactContextBaseJavaModule { @ReactMethod public void show() { MainThreadHandler.runOnMainThread(new Runnable() { @Override public void run() { try { FeatureRequests.show(); } catch (Exception e) { e.printStackTrace(); } } }); } RNInstabugFeatureRequestsModule(ReactApplicationContext reactApplicationContext); @Nonnull @Override String getName(); @SuppressLint("WrongConstant") @ReactMethod void setEmailFieldRequiredForFeatureRequests(final boolean isEmailRequired, final ReadableArray actionTypes); @ReactMethod void show(); @ReactMethod void setEnabled(final boolean isEnabled);  }
@Test public void given$show_whenQuery_thenShouldCallNativeApi() { PowerMockito.mockStatic(FeatureRequests.class); featureRequestsModule.show(); PowerMockito.verifyStatic(VerificationModeFactory.times(1)); FeatureRequests.show(); }