### Question:
RNInstabugRepliesModule extends ReactContextBaseJavaModule { @ReactMethod public void hasChats(final Callback callback) { MainThreadHandler.runOnMainThread(new Runnable() { @Override public void run() { boolean hasChats = Replies.hasChats(); callback.invoke(hasChats); } }); } RNInstabugRepliesModule(ReactApplicationContext reactApplicationContext); @Nonnull @Override String getName(); @ReactMethod void setEnabled(final boolean isEnabled); @ReactMethod void hasChats(final Callback callback); @ReactMethod void show(); @ReactMethod void setInAppNotificationSound(final boolean shouldPlaySound); @ReactMethod void getUnreadRepliesCount(final Callback messageCountCallback); @ReactMethod void setInAppNotificationEnabled(final boolean isChatNotificationEnable); @ReactMethod void setOnNewReplyReceivedHandler(final Callback onNewReplyReceivedCallback);  }### Answer:
@Test public void givenCallback$hasChats_whenQuery_thenShouldCallNativeApiAndInvokeCallback() { PowerMockito.mockStatic(Replies.class); Callback callback = mock(Callback.class); rnModule.hasChats(callback); PowerMockito.verifyStatic(VerificationModeFactory.times(1)); Replies.hasChats(); verify(callback).invoke(any()); }