### Question:
AisAccountTppInfoValidator extends TppInfoValidator { @Override ErrorType getErrorType() { return ErrorType.AIS_400; } AisAccountTppInfoValidator(TppInfoCheckerService tppInfoCheckerService);   }### Answer:
@Test void validateTpp_withDifferentTppInConsent_shouldReturnError() { MessageError expectedError = new MessageError(ErrorType.AIS_400, TppMessageInformation.of(MessageErrorCode.CONSENT_UNKNOWN_400_INCORRECT_CERTIFICATE)); when(tppInfoCheckerService.differsFromTppInRequest(DIFFERENT_TPP_INFO)).thenReturn(true); ValidationResult validationResult = aisAccountTppInfoValidator.validateTpp(DIFFERENT_TPP_INFO); assertNotNull(validationResult); assertTrue(validationResult.isNotValid()); MessageError actualError = validationResult.getMessageError(); assertNotNull(actualError); assertEquals(expectedError.getErrorType(), actualError.getErrorType()); assertEquals(expectedError.getTppMessage(), actualError.getTppMessage()); }