@Test
public void shouldRegisterAllEditableRepositoriesFromParamEngineInOrderWhenCreatingNewEditor() {

    // given
    ParamRepository viewableRepository = mock(ViewableParamRepository.class);
    ParamRepository editableRepository1 = new FakeEditableParamRepository();
    ParamRepository editableRepository2 = new FakeEditableParamRepository();
    ParamEngineConfig config = ParamEngineConfigBuilder.paramEngineConfig()
            .withParameterRepository("fake1", editableRepository1)
            .withParameterRepository(viewableRepository)
            .withParameterRepository("fake2", editableRepository2)
            .withAnnotationScanDisabled()
            .withType("string", new StringType())
            .build();
    ParamEngine paramEngine = ParamEngineFactory.paramEngine(config);
    // when
    BasicParamEditor localParamEditor = new BasicParamEditor(paramEngine, null);
    // then
    assertThat(localParamEditor.repositories()).containsOnly(RepositoryName.from("fake1"), RepositoryName.from("fake2"));
}