@Test
public void testGetObject() {

    // The JSON response should look like:
    //
    // {
    //   "id" : 1,
    //   "name" : "Apples"
    // }
    Item item = given().accept(JSON).when().header(testHeader).get("/api/items/{id}", 1).as(Item.class);
    assertEquals("Item id does not match", 1, item.getId());
    assertEquals("Item name does not match", "Apples", item.getName());
}