public void testSetPropertyInServiceContext() throws Exception {
if (!canRunTests) {
return;
}
ServiceGroupContext serviceGroupContext1 =
configurationContext1.createServiceGroupContext(serviceGroup1);
serviceGroupContext1.setId(TEST_SERVICE_NAME);
ServiceContext serviceContext1 = serviceGroupContext1.getServiceContext(service1);
configurationContext1.addServiceGroupContextIntoApplicationScopeTable(serviceGroupContext1);
assertNotNull(serviceGroupContext1);
assertNotNull(serviceContext1);
ServiceGroupContext serviceGroupContext2 =
configurationContext2.createServiceGroupContext(serviceGroup2);
serviceGroupContext2.setId(TEST_SERVICE_NAME);
ServiceContext serviceContext2 = serviceGroupContext2.getServiceContext(service2);
configurationContext2.addServiceGroupContextIntoApplicationScopeTable(serviceGroupContext2);
assertNotNull(serviceGroupContext2);
assertNotNull(serviceContext2);
String key1 = "sgCtxKey";