ObjEntity entity = context.getEntityResolver().lookupObjEntity(
ClientMtTable1Subclass.class);
Expression qualifier = entity.getDeclaredQualifier();
try {
ClientMtTable1Subclass ee = context.newObject(ClientMtTable1Subclass.class);
assertEquals(ee.getGlobalAttribute1(), "sub1");
// check AND
entity.setDeclaredQualifier(qualifier.andExp(Expression
.fromString("serverAttribute1 = 'sa'")));
ee = context.newObject(ClientMtTable1Subclass.class);
assertEquals(ee.getGlobalAttribute1(), "sub1");
assertEquals(ee.getServerAttribute1(), "sa");
}
finally {
entity.setDeclaredQualifier(qualifier);
}
}