@Test
public void givenArgs$setEmailFieldRequiredForFeatureRequests_whenQuery_thenShouldCallNativeApi() {

    // given
    PowerMockito.mockStatic(FeatureRequests.class);
    PowerMockito.mockStatic(Arguments.class);
    // when
    PowerMockito.when(Arguments.createArray()).thenReturn(new JavaOnlyArray());
    ReadableArray actionTypes = Arguments.createArray();
    ((WritableArray) actionTypes).pushString("requestNewFeature");
    ((WritableArray) actionTypes).pushString("addCommentToFeature");
    featureRequestsModule.setEmailFieldRequiredForFeatureRequests(true, actionTypes );
    int[] parsedActionTypes = new int[2];
    parsedActionTypes[0] = ActionType.REQUEST_NEW_FEATURE;
    parsedActionTypes[1] = ActionType.ADD_COMMENT_TO_FEATURE;
    // then
    PowerMockito.verifyStatic(VerificationModeFactory.times(1));
    FeatureRequests.setEmailFieldRequired(true, parsedActionTypes);
}