ServerInformation { public static Map<String, Object> getAllInformation() { return map( "system", getSystemInformation(), "runtime", getRuntimeInformation(), "openmrs", getOpenmrsInformation(), "kenyaemr", getKenyaemrInformation() ); }  static Map<String, Object> getAllInformation(); static Map<String, Object> getSystemInformation(); static Map<String, Object> getRuntimeInformation(); static Map<String, Object> getOpenmrsInformation(); static Map<String, Object> getKenyaemrInformation();  }
@Test public void getAllInformation_shouldFetchAllServerInformation() { Map<String, Object> info = ServerInformation.getAllInformation(); Assert.assertThat(info, hasKey("system")); Assert.assertThat(info, hasKey("runtime")); Assert.assertThat(info, hasKey("openmrs")); Assert.assertThat(info, hasKey("kenyaemr")); }