### Question:
ScaMethodUtils { static List<String> toScaMethods(List<ScaUserDataTO> scaMethods) { return CollectionUtils.isEmpty(scaMethods) ? Collections.emptyList() : scaMethods.stream().map(ScaUserDataTO::getId).collect(Collectors.toList()); } private  ScaMethodUtils();   }### Answer:
@Test void toScaMethods_success() { ScaUserDataTO userData = jsonReader.getObjectFromFile("json/spi/converter/sca-user-data.json", ScaUserDataTO.class); List<String> scaMethods = ScaMethodUtils.toScaMethods(Collections.singletonList(userData)); assertEquals(1, scaMethods.size()); assertEquals("111", scaMethods.get(0)); }
@Test void toScaMethods_emptyList() { assertTrue(ScaMethodUtils.toScaMethods(null).isEmpty()); assertTrue(ScaMethodUtils.toScaMethods(Collections.emptyList()).isEmpty()); }