try {
RootCfgClient root = TestCaseUtils.getRootConfiguration();
ConnectionHandlerCfgClient client = root
.getConnectionHandler(TEST_CONNECTION_HANDLER_NAME);
client.setEnabled(false);
client.commit();
Assert.fail("Successfully disabled a referenced component");
} catch (OperationRejectedException e) {
// This is the expected exception - do nothing.
}
} finally {