assertThat(blog.getKey(), is(notNullValue()));
}
@Test
public void update() throws Exception {
Blog blog = new Blog();
blog.setTitle("aaa");
blog.setContent("111");
Datastore.put(blog);
Map<String, Object> input = new HashMap<String, Object>();
input.put("title", "bbb");
input.put("content", "222");
Blog updated = service.update(blog.getKey(), blog.getVersion(), input);
assertThat(updated.getTitle(), is("bbb"));
assertThat(updated.getContent(), is("222"));
}