@Test
public void newParamConfigShouldBuildANewParamConfigWithGivenArgs(){

    ParamConfigBuilder expected = mock(ParamConfigBuilder.class);
    when(paramConfigBuilderFactory.newInstance(String.class, Integer.class)).thenReturn(expected);
    ParamConfigBuilder actual = toTest.newParamConfig(String.class, Integer.class);
    assertSame(expected, actual);
}