### Question:
NativeEnvironmentRepositoryFactory implements EnvironmentRepositoryFactory<NativeEnvironmentRepository, NativeEnvironmentProperties> { @Override public NativeEnvironmentRepository build(NativeEnvironmentProperties environmentProperties) { NativeEnvironmentRepository repository = new NativeEnvironmentRepository(this.environment, environmentProperties); if (this.properties.getDefaultLabel() != null) { repository.setDefaultLabel(this.properties.getDefaultLabel()); } return repository; } NativeEnvironmentRepositoryFactory(ConfigurableEnvironment environment, ConfigServerProperties properties); @Override NativeEnvironmentRepository build(NativeEnvironmentProperties environmentProperties);  }### Answer:
@Test public void testDefaultLabel() { ConfigServerProperties props = new ConfigServerProperties(); props.setDefaultLabel("mylabel"); NativeEnvironmentRepositoryFactory factory = new NativeEnvironmentRepositoryFactory(new StandardEnvironment(), props); NativeEnvironmentProperties environmentProperties = new NativeEnvironmentProperties(); NativeEnvironmentRepository repo = factory.build(environmentProperties); assertThat(repo.getDefaultLabel()).isEqualTo("mylabel"); factory = new NativeEnvironmentRepositoryFactory(new StandardEnvironment(), props); environmentProperties = new NativeEnvironmentProperties(); environmentProperties.setDefaultLabel("mynewlabel"); repo = factory.build(environmentProperties); assertThat(repo.getDefaultLabel()).isEqualTo("mylabel"); factory = new NativeEnvironmentRepositoryFactory(new StandardEnvironment(), new ConfigServerProperties()); environmentProperties = new NativeEnvironmentProperties(); environmentProperties.setDefaultLabel("mynewlabel"); repo = factory.build(environmentProperties); assertThat(repo.getDefaultLabel()).isEqualTo("mynewlabel"); }