@Test
public void shouldUseDefaultValueForRetryHandler() throws Exception {

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