BootstrapEnvironment { public ZookeeperConfiguration getZookeeperConfiguration() { ZookeeperConfiguration result = new ZookeeperConfiguration(getValue(EnvironmentArgument.ZOOKEEPER_SERVERS), getValue(EnvironmentArgument.ZOOKEEPER_NAMESPACE)); String digest = getValue(EnvironmentArgument.ZOOKEEPER_DIGEST); if (!Strings.isNullOrEmpty(digest)) { result.setDigest(digest); } return result; } private  BootstrapEnvironment(); String getFrameworkHostPort(); MesosConfiguration getMesosConfiguration(); ZookeeperConfiguration getZookeeperConfiguration(); RestfulServerConfiguration getRestfulServerConfiguration(); FrameworkConfiguration getFrameworkConfiguration(); Optional<TracingConfiguration> getTracingConfiguration(); HashMap<String, String> getJobEventRdbConfigurationMap(); Optional<String> getMesosRole();  }
@Test public void assertGetZookeeperConfiguration() { Properties properties = new Properties(); properties.setProperty(BootstrapEnvironment.EnvironmentArgument.ZOOKEEPER_DIGEST.getKey(), "test"); ReflectionUtils.setFieldValue(bootstrapEnvironment, "properties", properties); ZookeeperConfiguration zkConfig = bootstrapEnvironment.getZookeeperConfiguration(); assertThat(zkConfig.getServerLists(), is("localhost:2181")); assertThat(zkConfig.getNamespace(), is("elasticjob-cloud")); assertThat(zkConfig.getDigest(), is("test")); }