@Test
public void testUpdateEntry() {		

	ClientResponse resp = client.get("http://localhost:9002/hibernate/foo");
    Document<Entry> doc = resp.getDocument();
    Entry entry = (Entry) doc.getRoot().clone();
    entry.setTitle("This is the modified title");
    resp.release();
    resp = client.put("http://localhost:9002/hibernate/foo", entry);
    assertEquals(ResponseType.SUCCESS, resp.getType());
    assertEquals(200, resp.getStatus());
    resp.release();
    resp = client.get("http://localhost:9002/hibernate/foo");
    doc = resp.getDocument();
    entry = doc.getRoot();
    assertEquals("This is the modified title", entry.getTitle());
    resp.release();
    resp = client.get("http://localhost:9002/hibernate");
    Document<Feed> feed_doc = resp.getDocument();
    Feed feed = feed_doc.getRoot();
    assertEquals(1, feed.getEntries().size());
    resp.release();
}