e.setProperty("p_1", 1L);
e.setProperty("p_2", "abc");
e.setProperty("p_3", true);
List<PropertyUpdateInfo> changes = newArrayList(
new PropertyUpdateInfo("__key__", new KeyInfo(null, "kind_a", "entity_1", null, null)
).setNewInfo(new KeyInfo(null, "kind_b", "entity_2", null, null)),
new PropertyUpdateInfo("p_3", new BooleanPropertyInfo(true)).setDeleteFlag(true),
new PropertyUpdateInfo("p_2", new BooleanPropertyInfo(true)).setNewInfo(new LongPropertyInfo(5)).setNewName("p_5"),
new PropertyUpdateInfo("p_1", new LongPropertyInfo(1l)).setNewName("p_6"));
Entity actual = service.applyChange(e, changes);
// key is not changed
assertEquals("kind_b", actual.getKey().getKind());