@Test
public void persistGood() {
Category c = new Category();
Key categoryKey = dh.saveCategoryWithGoods(c);
Good g = new Good();
String name = "hello";
String descr = "descr";
String imageKey = "otnuotenuh";
g.setName(name);
g.setDescription(new Text(descr));
g.setImageBlobKey(imageKey);
g.setParentKeyStr(KeyFactory.keyToString(categoryKey));
dh.persistGood(g.toJson());
assertEquals(1,
ds.prepare(new Query(Good.KIND)).countEntities(withLimit(10)));
List<Entity> list = ds.prepare(new Query(Good.KIND)).asList(