public function testDelete()
{
ItemQuery::create()->deleteAll();
$item1 = new Item();
$item1->setTitle('Item 1');
$item1->save();
$id = $item1->getId();
$response = $this->restCall('/jarves/object/test/item/' . $id);
$this->assertEquals('Item 1', $response['data']['title']);
$response = $this->restCall('/jarves/object/test/item/' . $id, 'DELETE');
$this->assertEquals(200, $response['status']);
$this->assertTrue($response['data']);
//did we really delete it?
$response = $this->restCall('/jarves/object/test/item/' . $id);
$this->assertNull($response['data']);
}