### Question:
CmsPsuService { public boolean isPsuDataNew(PsuData psuData, List<PsuData> psuDataList) { return Optional.ofNullable(psuData) .map(psu -> !isPsuDataInList(psu, psuDataList)) .orElseGet(() -> { log.info("Check is psu data a new instance failed - psuData is null"); return false; }); }  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 isPsuDataNew_PsuIsExistInList() { boolean actualResult = cmsPsuService.isPsuDataNew(PSU_DATA_1, PSU_DATA_LIST); assertFalse(actualResult); }
@Test void isPsuDataNew_PsuIsNull() { boolean actualResult = cmsPsuService.isPsuDataNew(null, PSU_DATA_LIST); assertFalse(actualResult); }
@Test void isPsuDataNew_PsuIsNotExistInList() { boolean actualResult = cmsPsuService.isPsuDataNew(PSU_DATA_3, PSU_DATA_LIST); assertTrue(actualResult); }