### Question:
RouteModel { public static ObjectNode from(Route route, Json json) { return json.newObject().put("url", route.getUrl()) .put("controller", route.getControllerClass().getName()) .put("method", route.getControllerMethod().getName()) .put("http_method", route.getHttpMethod().toString()); }  static ObjectNode from(Route route, Json json);  }### Answer:
@Test public void testFrom() throws Exception { Route route = new Route(HttpMethod.DELETE, "/", new MyController(), MyController.class.getMethod("foo")); final JacksonSingleton json = new JacksonSingleton(); json.validate(); ObjectNode node = RouteModel.from(route, json); assertThat(node.get("http_method").textValue()).isEqualTo("DELETE"); assertThat(node.get("method").textValue()).isEqualTo("foo"); }