@Test
public void testMyAccessCoordinator() throws Exception {
properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
MyAccessCoordinator.class.getName());
SgsTestNode node = new SgsTestNode(
"TestKernelSetAccessCoordinator", null, properties);
Identity taskOwner = node.getProxy().getCurrentOwner();
TransactionScheduler txnScheduler =
node.getSystemRegistry().getComponent(TransactionScheduler.class);
final DataService dataService = node.getDataService();
txnScheduler.runTask(
new TestAbstractKernelRunnable() {
public void run() throws Exception {
dataService.setBinding("a", new DummyManagedObject());
}
}, taskOwner);
assertTrue(MyAccessCoordinator.getUsed());
node.shutdown(false);
}