### Question:
CmsPsuService { public boolean isPsuDataListEqual(@NotNull List<PsuData> psuDataList, @NotNull List<PsuData> anotherPsuDataList) { if (psuDataList.size() != anotherPsuDataList.size()) { return false; } return psuDataList.stream() .allMatch(psuData -> isPsuDataInList(psuData, anotherPsuDataList)); }  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 isPsuDataListEqual_shouldReturnTrue_sameList() { boolean actualResult = cmsPsuService.isPsuDataListEqual(PSU_DATA_LIST, PSU_DATA_LIST); assertTrue(actualResult); }
@Test void isPsuDataListEqual_shouldReturnTrue_sameContentExceptId() { List<PsuData> psuDataList = Arrays.asList(buildPsuDataWithId(PSU_ID_1, 1L), buildPsuDataWithId(PSU_ID_2, 2L)); List<PsuData> anotherPsuDataList = Arrays.asList(buildPsuDataWithId(PSU_ID_1, 3L), buildPsuDataWithId(PSU_ID_2, 4L)); boolean actualResult = cmsPsuService.isPsuDataListEqual(psuDataList, anotherPsuDataList); assertTrue(actualResult); }
@Test void isPsuDataListEqual_shouldReturnTrue_emptyLists() { boolean actualResult = cmsPsuService.isPsuDataListEqual(Collections.emptyList(), Collections.emptyList()); assertTrue(actualResult); }
@Test void isPsuDataListEqual_shouldReturnFalse_differentPsuIds() { List<PsuData> psuDataList = Arrays.asList(PSU_DATA_1, PSU_DATA_2); List<PsuData> anotherPsuDataList = Arrays.asList(PSU_DATA_2, PSU_DATA_3); boolean actualResult = cmsPsuService.isPsuDataListEqual(psuDataList, anotherPsuDataList); assertFalse(actualResult); }
@Test void isPsuDataListEqual_shouldReturnFalse_oneEmptyList() { boolean actualResult = cmsPsuService.isPsuDataListEqual(PSU_DATA_LIST, Collections.emptyList()); assertFalse(actualResult); }