### Question:
TrustedBeneficiariesModelMapper { public TrustedBeneficiariesList mapToTrustedBeneficiariesList(Xs2aTrustedBeneficiariesList xs2ATrustedBeneficiariesList) { List<Xs2aTrustedBeneficiaries> trustedBeneficiaries = xs2ATrustedBeneficiariesList.getTrustedBeneficiaries(); List<TrustedBeneficiary> beneficiaries = trustedBeneficiaries.stream() .map(this::mapToTrustedBeneficiaries) .collect(Collectors.toList()); TrustedBeneficiariesList result = new TrustedBeneficiariesList(); result.addAll(beneficiaries); return result; }  TrustedBeneficiariesList mapToTrustedBeneficiariesList(Xs2aTrustedBeneficiariesList xs2ATrustedBeneficiariesList); abstract TrustedBeneficiary mapToTrustedBeneficiaries(Xs2aTrustedBeneficiaries trustedBeneficiaries);  }### Answer:
@Test void mapToTrustedBeneficiariesList() { TrustedBeneficiariesList expected = jsonReader.getObjectFromFile("json/service/mapper/trusted-beneficiaries-model-mapper/trusted-beneficiaries-list.json", TrustedBeneficiariesList.class); Xs2aTrustedBeneficiariesList input = jsonReader.getObjectFromFile("json/service/mapper/trusted-beneficiaries-model-mapper/xs2a-trusted-beneficiaries-list.json", Xs2aTrustedBeneficiariesList.class); TrustedBeneficiariesList actual = trustedBeneficiariesModelMapper.mapToTrustedBeneficiariesList(input); assertThat(actual).isEqualTo(expected); }