AbstractFSParamRepository implements ParamRepository, InitializableComponent { @Override public Set<String> listParameters() { checkIfInitialized(); return parameters.keySet(); } AbstractFSParamRepository(String basePath, String filePattern);  AbstractFSParamRepository(String basePath, String filePattern, ParamDeserializer deserializer); @Override void initialize(); @Override Parameter load(String parameterName); @Override ParameterBatchLoader batchLoad(String parameterName); @Override Set<ParameterEntry> findEntries(String parameterName, String[] levelValues); @Override Set<String> listParameters();  }
@Test public void shouldThrowInitializationExceptionWhenLoadingParameterListWithoutInitialization() { ParamRepository paramRepository = new TestFSParamRepository(resourceResolver); catchException(paramRepository).listParameters(); assertThat(caughtException()).isInstanceOf(InitializableComponentNotInitialized.class); }