assertEquals("bob", e.getName());
assertTrue(Id.isValid(e.getId()));
}
public void testPut() throws Exception {
Employee bob = client.post(new Employee("bob"), new WebContext());
assertEquals("bob", bob.getName());
Employee sam = client.put(new Employee(bob.getId(), "sam"), new WebContext());
assertEquals("sam", sam.getName());
assertEquals(bob.getId(), sam.getId());
}