class ConsumerMockProcessor implements ConsumerConfigProcessor {

    public static final String MOCK_URL = "mockUrl";

    private String             mockUrl;

    public ConsumerMockProcessor(String mockUrl) {
        this.mockUrl = mockUrl;
    }

    @Override
    public void processorConsumer(ConsumerConfig consumerConfig) {<FILL_FUNCTION_BODY>}

    public String getMockUrl() {
        return mockUrl;
    }

    public void setMockUrl(String mockUrl) {
        this.mockUrl = mockUrl;
    }
}

        String mockMode = consumerConfig.getMockMode();
        if (StringUtils.hasText(mockUrl)
            && (!StringUtils.hasText(mockMode) || MockMode.REMOTE.equals(mockMode))) {
            String originMockUrl = consumerConfig.getParameter(MOCK_URL);
            if (!StringUtils.hasText(originMockUrl)) {
                consumerConfig.setMockMode(MockMode.REMOTE);
                consumerConfig.setParameter(MOCK_URL, mockUrl);
            }
        }
    
<no_super_class>