@Test public void testCreate() { ValidatableResponse response = post(BASE_URL + "/myresource").then(); response.statusCode(200); response.body("name", equalTo("todd")); response.body("href", equalTo("http: response.body("id", not(equalTo(null))); }
public Model create(Request request, Response response) { return new Model("todd", "http: }
MyResource { public Model create(Request request, Response response) { return new Model("todd", "http: } }
MyResource { public Model create(Request request, Response response) { return new Model("todd", "http: }  }
MyResource { public Model create(Request request, Response response) { return new Model("todd", "http: }  String read(Request request, Response response); Model create(Request request, Response response); }
MyResource { public Model create(Request request, Response response) { return new Model("todd", "http: }  String read(Request request, Response response); Model create(Request request, Response response);  }