newRec.setProperty("stringData", "no entity property");
newRec.setProperty("timestamp", new Date());
elist.add(newRec);
// Notice, no kind, or key is required
EmbeddedEntity newRec0 = new EmbeddedEntity();
newRec0.setProperty("stringData", "check6009464");
newRec0.setProperty("timestamp", new Date());
newRec = new Entity(kindName, rootKey);
newRec.setProperty("entityDat", newRec0);
newRec.setProperty("stringData", "have entity property");
newRec.setProperty("timestamp", new Date());
elist.add(newRec);
service.put(elist);
sync(waitTime);
Query q = new Query(kindName, rootKey);
int count = service.prepare(q).countEntities(FetchOptions.Builder.withDefaults());
assertEquals(2, count);
for (Entity readRec : service.prepare(q).asIterable()) {
EmbeddedEntity ee2 = (EmbeddedEntity) readRec.getProperty("entityDat");
if (ee2 != null) {
assertEquals("have entity property", readRec.getProperty("stringData"));
assertEquals(readRec.getProperty("entityDat").getClass(), EmbeddedEntity.class);
Entity e = new Entity(ee2.getKey());
e.setPropertiesFrom(ee2);
assertEquals("check6009464", e.getProperty("stringData"));
} else {
assertEquals("no entity property", readRec.getProperty("stringData"));
}