HttpNotification implements Runnable { public HttpNotification(String url) { this.url = url; } HttpNotification(String url); @Override void run(); String getResponseCode(); String getResponseBody();  }
@Test public void testHttpNotification() { HttpNotification notification = new HttpNotification("http: notification.run(); Assert.assertEquals(notification.getResponseCode(), "200"); Assert.assertEquals(notification.getResponseBody(), ""); }