Expect that Response Returns a JSON Object with an ID
test("that Response Returns a JSON Object",()async{expectResponse(awaitapp.client.request("/endpoint").get(),200,body:{"id":isNumber});});
Expect that Response Returns a List of JSON Objects with IDs
test("that Response returns a list of JSON Objects with IDs",()async{expectResponse(awaitapp.client.request("/endpoint").get(),200,body:everyElement({"id":isNumber}));});
Expect that Last-Modified Header Is After Date
test("that Last-Modified Header Is After Date ",()async{expect(awaitapp.client.request("/endpoint").get(),hasHeaders({"last-modified":isAfter(newDateTime(2017))});});
HTTP POST with JSON in Test
test("that can send JSON body",()async{varrequest=app.client.request("/endpoint")..json={"id":1};expect(awaitrequest.post(),hasStatus(202));});