CurrentState currentState = new CurrentState(oldResource);
currentState.setState(PartitionId.from("testResourceOld_0"), State.from("OFFLINE"));
currentState.setState(PartitionId.from("testResourceOld_1"), State.from("SLAVE"));
currentState.setState(PartitionId.from("testResourceOld_2"), State.from("MASTER"));
currentState.setStateModelDefRef("MasterSlave");
accessor.setProperty(keyBuilder.currentState(instanceName, sessionId, oldResource),
currentState);
ResourceComputationStage stage = new ResourceComputationStage();
runStage(event, new ReadClusterDataStage());
runStage(event, stage);