@Test
public void given$getAvailableSurveys_whenQuery_thenShouldCallNativeApiAndInvokeCallback() throws Exception {

    // given
    PowerMockito.mockStatic(Surveys.class);
    PowerMockito.mockStatic(SystemClock.class);
    PowerMockito.mockStatic(Arguments.class);
    Callback callback = mock(Callback.class);
    JSONArray json = mock(JSONArray.class);
    // when
    PowerMockito.whenNew(JSONArray.class).withAnyArguments().thenReturn(json);
    PowerMockito.when(Arguments.createArray()).thenReturn(new JavaOnlyArray());
    surveysModule.getAvailableSurveys(callback);
    // then
    PowerMockito.verifyStatic(VerificationModeFactory.times(1));
    Surveys.getAvailableSurveys();
    verify(callback).invoke(any());
}