    @Test
    public void testSaveRateException() throws IOException {

        JsonProcessingException jsonProcessingException = Mockito.mock(JsonProcessingException.class);
        when(objectMapper.writeValueAsString(any())).thenThrow(jsonProcessingException);
        ConsulRateLimiter consulRateLimiter = new ConsulRateLimiter(rateLimiterErrorHandler, consulClient, objectMapper);

        consulRateLimiter.saveRate(null);
        verifyNoInteractions(consulClient);
    }