### Question:
AspspProfileConvertServiceImpl implements AspspProfileConvertService { @Override public String convertProfile(OldProfileConfiguration profile) { NewProfileConfiguration newProfileConfiguration = newProfileConfigurationMapper.mapToNewProfileConfiguration(profile); Yaml yaml = new Yaml(getYamlRepresenter(), getYamlDumperOptions()); return yaml.dumpAsMap(newProfileConfiguration); }  @Override String convertProfile(OldProfileConfiguration profile);  }### Answer:
@Test void convertProfile() { OldProfileConfiguration oldProfileConfiguration = jsonReader.getObjectFromFile("json/mapper/old-profile-configuration.json", OldProfileConfiguration.class); NewProfileConfiguration newProfileConfiguration = jsonReader.getObjectFromFile("json/mapper/new-profile-configuration.json", NewProfileConfiguration.class); when(newProfileConfigurationMapper.mapToNewProfileConfiguration(oldProfileConfiguration)).thenReturn(newProfileConfiguration); String expectedYaml = jsonReader.getStringFromFile("json/service/new-profile.yml"); String actual = aspspProfileConvertService.convertProfile(oldProfileConfiguration); assertEquals(expectedYaml, actual); }