public GenericException createCreditNotFoundException(int creditId) {
        return GenericException.builder()
                .httpStatus(HttpStatus.NOT_FOUND)
                .logMessage(this.getClass().getName() + ".getCredit credit not found with credit id {0}", creditId)
                .message(ErrorCode.CREDIT_NOT_FOUND)
                .build();
    }
@Test
    void createCreditNotFoundException() {
        // Act
        GenericException exception = creditService.createCreditNotFoundException(1);

        // Assert
        assertEquals(HttpStatus.NOT_FOUND, exception.getHttpStatus());
        assertEquals(ErrorCode.CREDIT_NOT_FOUND, exception.getErrorCode());
    }