@Test
public void shouldBuildAnInstanceOfDefaultInterfaceConfigBuilderWithGivenParams() throws Exception {

    DefaultInterfaceConfigBuilder expected = mock(DefaultInterfaceConfigBuilder.class);
    whenNew(DefaultInterfaceConfigBuilder.class)
            .withArguments(TestInterface.class, mockCrestConfig, mockMimeDeserializerRegistry, mockClassSerializerRegistry)
            .thenReturn(expected);
    InterfaceConfigBuilder actual = toTest.newInstance(TestInterface.class);
    assertSame(expected, actual);
}