public void testAddItemToExistingTodo() {
final String id = UUID.randomUUID().toString();
final Todo todo = Todo.newBuilder().id(id).created(new Date()).build();
dao.insert(todo);
final Item item = Item.newBuilder().title("Something").created(new Date()).build();
Todo updated = todo.toBuilder().item(item).build();
Todo response = client().resource("/todos/" + id)
.type(MediaType.APPLICATION_JSON).put(Todo.class, updated);
assertThat(response).isEqualTo(updated);