@Test
public void given$setOnShowSurveyHandler_whenQuery_thenShouldSetNativeCallback() {

    try {
        // given
        PowerMockito.mockStatic(Surveys.class);
        PowerMockito.mockStatic(InstabugUtil.class);
        // when
        PowerMockito.doAnswer(new Answer<Object>() {
            @Override
            public Object answer(InvocationOnMock invocation) {
                ((OnShowCallback) invocation.getArguments()[0]).onShow();
                return null;
            }
        }).when(Surveys.class, "setOnShowCallback", Matchers.anyObject());
        surveysModule.setOnShowHandler(null);
        // then
        PowerMockito.verifyStatic(VerificationModeFactory.times(1));
        InstabugUtil.sendEvent(any(ReactApplicationContext.class), eq(Constants.IBG_ON_SHOW_SURVEY_HANDLER), Matchers.isNull(WritableMap.class));
    } catch (Exception e) {
        e.printStackTrace();
    }
}