@Test
public void givenArg$setLocale_whenQuery_thenShouldCallNativeApiWithLocale() {

    // given
    PowerMockito.mockStatic(Instabug.class);
    Map<String, Object> args = new HashMap<>();
    ArgsRegistry.registerLocaleArgs(args);
    String[] keysArray = args.keySet().toArray(new String[0]);
    // when
    for (String key : keysArray) {
        rnModule.setLocale(key);
    }
    // then
    PowerMockito.verifyStatic(VerificationModeFactory.times(1));
    for (String key : keysArray) {
        Locale locale = (Locale) args.get(key);
        Instabug.setLocale(locale);
    }
}