@Test public void shouldInitializeInitializableParamRepositories() { InitializableParamRepository repository = mock(InitializableParamRepository.class); ParamEngineConfig config = ParamEngineConfigBuilder.paramEngineConfig() .withParameterRepository(repository) .build(); ParamEngineFactory.paramEngine(config); verify(repository).initialize(); }
public static ParamEngine paramEngine(ParamEngineConfig config) { return new ParamEngineFactory().createParamEngine(config); }
ParamEngineFactory { public static ParamEngine paramEngine(ParamEngineConfig config) { return new ParamEngineFactory().createParamEngine(config); } }
ParamEngineFactory { public static ParamEngine paramEngine(ParamEngineConfig config) { return new ParamEngineFactory().createParamEngine(config); }  }
ParamEngineFactory { public static ParamEngine paramEngine(ParamEngineConfig config) { return new ParamEngineFactory().createParamEngine(config); }  static ParamEngine paramEngine(ParamEngineConfig config); ParamEngine createParamEngine(ParamEngineConfig config); }
ParamEngineFactory { public static ParamEngine paramEngine(ParamEngineConfig config) { return new ParamEngineFactory().createParamEngine(config); }  static ParamEngine paramEngine(ParamEngineConfig config); ParamEngine createParamEngine(ParamEngineConfig config);  }