@Override
    public Map<String, Metric> getMetrics() {
        return metricRegistry.getMetrics();
    }
@Test
    public void shouldReturnTotalNumberOfRequestsAs1ForSuccess() {
        HelloWorldService helloWorldService = mock(HelloWorldService.class);

        Retry retry = Retry.of("metrics", RetryConfig.<String>custom()
            .retryOnResult(String::isEmpty)
            .maxAttempts(5)
            .build());

        given(helloWorldService.returnHelloWorld()).willReturn("Success");
        String result = Retry.decorateSupplier(retry, helloWorldService::returnHelloWorld).get();
        assertThat(retry.getMetrics().getNumberOfTotalCalls()).isEqualTo(1);
        assertThat(result).isEqualTo("Success");
    }