entity = jpaController.create(entity);
assertTrue("Entity not created properly", (entity.getId() > 0L));
final String ASSERT_KEY = "BODY";
final String ASSERT_BODY = "FIXED BODY VALUE";
final Property ASSERT_MAP_ITEM = new Property(ASSERT_KEY, ASSERT_BODY, Type.STRING);
entity.getMapBodyItems().add(ASSERT_MAP_ITEM);
entity = jpaController.edit(entity);
int indexOfMapItem = entity.getMapBodyItems().indexOf(ASSERT_MAP_ITEM);
assertTrue("Entity not found in the collection", (indexOfMapItem > -1));
Property foundMapItem = entity.getMapBodyItems().get(indexOfMapItem);
assertEquals("Entity not edited properly", ASSERT_MAP_ITEM, foundMapItem);
}