Key minutesKey = MinutesService.put(" テスト用議事録1");
int before = tester.count(Memo.class);
Key key = MemoService.put(minutesKey, " メモ1");
int after = tester.count(Memo.class);
assertThat("Memo が一件増える", after, is(before + 1));
Memo memo = Datastore.get(Memo.class, key);
assertThat(memo, is(notNullValue()));
assertThat(" 議事録への参照が設定される", memo.getMinutes(), is(minutesKey));
assertThat("memo が設定される", memo.getMemo(), is(" メモ1"));
assertThat("createdAt が設定される", memo.getCreatedAt(), is(notNullValue()));
assertThat("author が設定される", memo.getAuthor(), is(notNullValue()));
}