### Question:
EndpointRouter { private void welcome(Repository r) { Welcome welcome = new Welcome(); welcome.setMessage("Welcome to YAWP!"); welcome.setVersion(Environment.version()); welcome.setDriver(r.driver().name()); throw new HttpException(200, JsonUtils.to(welcome)); } private  EndpointRouter(Repository r, RequestContext ctx); static EndpointRouter parse(Repository r, RequestContext ctx); boolean isOverCollection(); boolean isCustomAction(); String getCustomActionName(); HttpResponse executeRestAction(boolean enableShields); boolean isValid(); boolean tryToAdjustIds();  }### Answer:
@Test public void testWelcome() { String version = Environment.version(); String driver = yawp.driver().name(); try { get(""); fail(); } catch (HttpException e) { Welcome welcome = from(e.getText(), Welcome.class); assertEquals("Welcome to YAWP!", welcome.getMessage()); assertEquals(version, welcome.getVersion()); assertEquals(driver, welcome.getDriver()); } try { get("/"); fail(); } catch (HttpException e) { Welcome welcome = from(e.getText(), Welcome.class); assertEquals("Welcome to YAWP!", welcome.getMessage()); assertEquals(version, welcome.getVersion()); assertEquals(driver, welcome.getDriver()); } }