### Question:
PisTppInfoValidator extends TppInfoValidator { @Override ErrorType getErrorType() { return ErrorType.PIS_401; } PisTppInfoValidator(TppInfoCheckerService tppInfoCheckerService);   }### Answer:
@Test void validateTpp_withDifferentTppInCommonPayment_shouldReturnError() { when(tppInfoCheckerService.differsFromTppInRequest(DIFFERENT_TPP_INFO)) .thenReturn(true); ValidationResult validationResult = pisTppInfoValidator.validateTpp(DIFFERENT_TPP_INFO); assertNotNull(validationResult); assertTrue(validationResult.isNotValid()); MessageError expectedError = new MessageError(ErrorType.PIS_401, TppMessageInformation.of(MessageErrorCode.CERTIFICATE_INVALID_TPP)); assertEquals(expectedError.getErrorType(), validationResult.getMessageError().getErrorType()); assertEquals(expectedError.getTppMessage().getMessageErrorCode(), validationResult.getMessageError().getTppMessage().getMessageErrorCode()); }