AuthenticatorTransportConverter { public AuthenticatorTransport convert(String value) { try { return AuthenticatorTransport.create(value); } catch (IllegalArgumentException e) { throw new DataConversionException(e); } }  AuthenticatorTransport convert(String value); @SuppressWarnings("squid:S1168") Set<AuthenticatorTransport> convertSet(Set<String> values); String convertToString(AuthenticatorTransport value); @SuppressWarnings("squid:S1168") Set<String> convertSetToStringSet(Set<AuthenticatorTransport> values);  }
@Test void convert_test() { assertThat(converter.convert("usb")).isEqualTo(AuthenticatorTransport.USB); }
@Test void convert_unknown_value_test() { assertThat(converter.convert("unknown")).isEqualTo(AuthenticatorTransport.create("unknown")); }