### Question:
CmsPsuService { public List<PsuData> enrichPsuData(PsuData psuData, List<PsuData> psuDataList) { if (isPsuDataNew(psuData, psuDataList)) { psuDataList.add(psuData); } return psuDataList; }  Optional<PsuData> definePsuDataForAuthorisation(PsuData psuDataForCheck, List<PsuData> psuDataList); List<PsuData> enrichPsuData(PsuData psuData, List<PsuData> psuDataList); boolean isPsuDataNew(PsuData psuData, List<PsuData> psuDataList); boolean isPsuDataListEqual(@NotNull List<PsuData> psuDataList, @NotNull List<PsuData> anotherPsuDataList); boolean isPsuDataRequestCorrect(PsuData psuRequest, PsuData psuAuth);  }### Answer:
@Test void enrichPsuData_PsuIsExistInList() { List<PsuData> actualResult = cmsPsuService.enrichPsuData(PSU_DATA_1, PSU_DATA_LIST); assertEquals(2, actualResult.size()); assertTrue(actualResult.containsAll(Arrays.asList(PSU_DATA_1, PSU_DATA_2))); }
@Test void enrichPsuData_PsuIsNotExistInList() { List<PsuData> actualResult = cmsPsuService.enrichPsuData(PSU_DATA_3, PSU_DATA_LIST); assertEquals(3, actualResult.size()); assertTrue(actualResult.containsAll(Arrays.asList(PSU_DATA_1, PSU_DATA_2, PSU_DATA_3))); }