@Test
public void shouldOverrideValueForRequestInterceptor() throws Exception {

    mockEndpoint();
    TestRequestInterceptor mockTestRequestInterceptor = mock(TestRequestInterceptor.class);
    mockStatic(ComponentFactory.class);
    when(ComponentFactory.instantiate(TestRequestInterceptor.class, mockCRestConfig)).thenReturn(mockTestRequestInterceptor);
    mockOverride(MethodConfig.METHOD_CONFIG_DEFAULT_REQUEST_INTERCEPTOR, TestRequestInterceptor.class);
    DefaultMethodConfigBuilder toTest = newToTest();
    MethodConfig actual = toTest.build();
    assertCommons(actual);
    assertSame(mockTestRequestInterceptor, actual.getRequestInterceptor());
}