### Question:
Xs2aCreatePisAuthorisationRequest { public boolean hasNoUpdateData() { return psuData.isEmpty() || StringUtils.isBlank(password); }  boolean hasNoUpdateData();  }### Answer:
@Test void hasNoUpdateData_withNoPsuIdData_shouldReturnTrue() { Xs2aCreatePisAuthorisationRequest request = new Xs2aCreatePisAuthorisationRequest(PAYMENT_ID, EMPTY_PSU_ID_DATA, PAYMENT_PRODUCT, SINGLE, PASSWORD); boolean actual = request.hasNoUpdateData(); assertTrue(actual); }
@Test void hasNoUpdateData_withBlankPassword_shouldReturnTrue() { Xs2aCreatePisAuthorisationRequest request = new Xs2aCreatePisAuthorisationRequest(PAYMENT_ID, PSU_ID_DATA, PAYMENT_PRODUCT, SINGLE, ""); boolean actual = request.hasNoUpdateData(); assertTrue(actual); }
@Test void hasNoUpdateData_withNullPassword_shouldReturnTrue() { Xs2aCreatePisAuthorisationRequest request = new Xs2aCreatePisAuthorisationRequest(PAYMENT_ID, PSU_ID_DATA, PAYMENT_PRODUCT, SINGLE, null); boolean actual = request.hasNoUpdateData(); assertTrue(actual); }
@Test void hasNoUpdateData_withNoPsuIdDataAndNoPassword_shouldReturnTrue() { Xs2aCreatePisAuthorisationRequest request = new Xs2aCreatePisAuthorisationRequest(PAYMENT_ID, EMPTY_PSU_ID_DATA, PAYMENT_PRODUCT, SINGLE, null); boolean actual = request.hasNoUpdateData(); assertTrue(actual); }
@Test void hasNoUpdateData_withPsuIdDataAndPassword_shouldReturnFalse() { Xs2aCreatePisAuthorisationRequest request = new Xs2aCreatePisAuthorisationRequest(PAYMENT_ID, PSU_ID_DATA, PAYMENT_PRODUCT, SINGLE, PASSWORD); boolean actual = request.hasNoUpdateData(); assertFalse(actual); }