@Test
public void shouldUseDefaultValueForRequestInterceptor() throws Exception {

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