AuthenticationExtensionsClientInputsConverter { public <T extends ExtensionClientInput> String convertToString(AuthenticationExtensionsClientInputs<T> value) { if (value == null) { return null; } return jsonConverter.writeValueAsString(value); } AuthenticationExtensionsClientInputsConverter(ObjectConverter objectConverter); AuthenticationExtensionsClientInputs<T> convert(String value); String convertToString(AuthenticationExtensionsClientInputs<T> value);  }
@Test void convertAuthenticationExtensionsToString_test() { AuthenticationExtensionsClientInputs.BuilderForAuthentication builder = new AuthenticationExtensionsClientInputs.BuilderForAuthentication(); builder.setAppid("test"); AuthenticationExtensionsClientInputs<AuthenticationExtensionClientInput> extensions = builder.build(); assertThat(authenticationExtensionsClientInputsConverter.convertToString(extensions)).isEqualTo("{\"appid\":\"test\"}"); }
@Test void convertAuthenticationExtensionsToString_null_test() { assertThat(authenticationExtensionsClientInputsConverter.convertToString(null)).isNull(); }