public void testInSeriesRolloutPlan() throws Exception {
// create rollout plans
// 1st plan
RolloutPlanBuilder planBuilder = new RolloutPlanBuilder();
planBuilder.addGroup(serverGroups[0], new RolloutPlanBuilder.RolloutPolicy(true, null, null));
planBuilder.addGroup(serverGroups[1], new RolloutPlanBuilder.RolloutPolicy(true, null, null));
planBuilder.addGroup(serverGroups[2], new RolloutPlanBuilder.RolloutPolicy(true, null, null));
String rolloutPlan = planBuilder.buildAsString();
cli.sendLine("rollout-plan add --name=testPlan --content=" + rolloutPlan);
// 2nd with reversed order
planBuilder = new RolloutPlanBuilder();
planBuilder.addGroup(serverGroups[2], new RolloutPlanBuilder.RolloutPolicy(true, null, null));
planBuilder.addGroup(serverGroups[1], new RolloutPlanBuilder.RolloutPolicy(true, null, null));
planBuilder.addGroup(serverGroups[0], new RolloutPlanBuilder.RolloutPolicy(true, null, null));
rolloutPlan = planBuilder.buildAsString();
cli.sendLine("rollout-plan add --name=testPlan2 --content=" + rolloutPlan);
// check they are listed
cli.sendLine("cd /management-client-content=rollout-plans/rollout-plan");
cli.sendLine("ls");