entity.setProperty("an extra property", "yar!");
assertEquals(sameEntity.getProperties(), entity.getProperties());
}
public void testKitchenSinkInsertWithNulls() throws EntityNotFoundException {
KitchenSink allNulls = new KitchenSink();
makePersistentInTxn(allNulls, TXN_START_END);
Entity entityWithNulls = ds.get(KeyFactory.stringToKey(allNulls.key));
assertNotNull(entityWithNulls);
// now create a KitchenSink with non-null values
KitchenSink noNulls = KitchenSink.newKitchenSink();
makePersistentInTxn(noNulls, TXN_START_END);
Entity entityWithoutNulls = ds.get(KeyFactory.stringToKey(noNulls.key));
assertNotNull(entityWithoutNulls);
assertEquals(entityWithNulls.getProperties().keySet(), entityWithoutNulls.getProperties().keySet());