@Test @SuppressWarnings("unchecked") public void getProperty() { Assume.assumeTrue(System.getenv("JAVA_HOME") != null); Map<String, String> map = (Map<String, String>) endpoint.get("JAVA_HOME"); Assert.assertEquals(1, map.size()); Assert.assertEquals(System.getenv("JAVA_HOME"), map.get("JAVA_HOME")); }
@Override public Object get() { return new TreeMap<>(System.getenv()); }
EnvEndpoint implements HttpEndpoint { @Override public Object get() { return new TreeMap<>(System.getenv()); } }
EnvEndpoint implements HttpEndpoint { @Override public Object get() { return new TreeMap<>(System.getenv()); }  }
EnvEndpoint implements HttpEndpoint { @Override public Object get() { return new TreeMap<>(System.getenv()); }  @Override Object get(); @Override Object get(String path); }
EnvEndpoint implements HttpEndpoint { @Override public Object get() { return new TreeMap<>(System.getenv()); }  @Override Object get(); @Override Object get(String path);  }