@Test
public void shouldUseDefaultValueForErrorHandler() throws Exception {

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