@Test
public void givenString$setString_whenQuery_thenShouldCallNativeApiWithEnum() {

    // given
    PowerMockito.mockStatic(Instabug.class);
    PowerMockito.mockStatic(Log.class);
    Map<String, Object> args = new HashMap<>();
    ArgsRegistry.registerCustomTextPlaceHolderKeysArgs(args);
    String[] keysArray = args.keySet().toArray(new String[0]);
    // when
    InstabugCustomTextPlaceHolder expectedPlaceHolders = new InstabugCustomTextPlaceHolder();
    for (String key : keysArray) {
        InstabugCustomTextPlaceHolder.Key placeHolder = (InstabugCustomTextPlaceHolder.Key) args.get(key);
        expectedPlaceHolders.set(placeHolder, key);
        rnModule.setString(key, key);
    }
    // then
    PowerMockito.verifyStatic(VerificationModeFactory.atLeastOnce());
    Instabug.setCustomTextPlaceHolders(Matchers.any(InstabugCustomTextPlaceHolder.class));
    InstabugCustomTextPlaceHolder placeHolders = Whitebox.getInternalState(rnModule, "placeHolders");
    for (String key : keysArray) {
        InstabugCustomTextPlaceHolder.Key placeHolder = (InstabugCustomTextPlaceHolder.Key) args.get(key);
        Assert.assertEquals(placeHolders.get(placeHolder), key);
    }
}