AuthenticatorTransportConverter { @SuppressWarnings("squid:S1168") public Set<AuthenticatorTransport> convertSet(Set<String> values) { if (values == null) { return null; } return values.stream().map(this::convert).collect(Collectors.toSet()); }  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 convertSet_test() { assertThat(converter.convertSet(Collections.singleton("usb"))).containsExactly(AuthenticatorTransport.USB); }
@Test void convertSet_null_test() { assertThat(converter.convertSet(null)).isNull(); }