ServiceStatus { public ServiceStatus(String name, Status status) { this.name = name; this.status = status; this.reasons = new ArrayList<String>(); } ServiceStatus(String name, Status status);  ServiceStatus(String name, Status status, String reason);  ServiceStatus(String name, Status status, List<String> reasons); String getName(); Status getStatus(); List<String> getReasons();  }
@Test public void testServiceStatus() { String name = "name"; Status status = Status.UP; serviceStatus = new ServiceStatus(name, status); assertEquals(name, serviceStatus.getName()); assertEquals(status, serviceStatus.getStatus()); assertNotNull(serviceStatus.getReasons()); assertTrue(serviceStatus.getReasons().isEmpty()); }