@Test
public void shouldOverrideValueForRetryHandler() throws Exception {

    mockEndpoint();
    TestRetryHandler mockTestRetryHandler = mock(TestRetryHandler.class);
    mockStatic(ComponentFactory.class);
    when(ComponentFactory.instantiate(TestRetryHandler.class, mockCRestConfig)).thenReturn(mockTestRetryHandler);
    mockOverride(MethodConfig.METHOD_CONFIG_DEFAULT_RETRY_HANDLER, TestRetryHandler.class);
    DefaultMethodConfigBuilder toTest = newToTest();
    MethodConfig actual = toTest.build();
    assertCommons(actual);
    assertSame(mockTestRetryHandler, actual.getRetryHandler());
}