addReadWriteAccess(Costing.class);
final OBCriteria<Costing> obc = OBDal.getInstance().createCriteria(Costing.class);
obc.add(Expression.eq("id", "1000078"));
final List<Costing> cs = obc.list();
assertEquals(1, cs.size());
final Costing c = cs.get(0);
c.setCost(c.getCost() + 1);
// switch usercontext to force exception
setUserContext("1000002");
try {
commitTransaction();