ConfigureEnviroment { @Bean public MicroserverEnvironment microserverEnvironment(@Qualifier("propertyFactory") Properties props) { if (modules == null) { return new MicroserverEnvironment(props); } return new MicroserverEnvironment(props, modules); }  @Bean MicroserverEnvironment microserverEnvironment(@Qualifier("propertyFactory") Properties props);  }
@Test public void testEnvironmentNoModules() { MicroserverEnvironment microserverEnvironment = configureEnviroment.microserverEnvironment(new Properties()); assertThat(microserverEnvironment.getModuleBean(() -> "simple") == null, is(true)); }
@Test public void testEnvironment() { MicroserverEnvironment microserverEnvironment = configureEnviroment.microserverEnvironment(new Properties()); assertThat(microserverEnvironment.getModuleBean(() -> "simple") == null, is(true)); }