@Test
public void testManualTaskPostProcessing() throws Exception {

  Map<String, UpgradePack> upgrades = ambariMetaInfo.getUpgradePacks("HDP", "2.1.1");
  assertTrue(upgrades.containsKey("upgrade_test"));
  UpgradePack upgrade = upgrades.get("upgrade_test");
  assertNotNull(upgrade);
  Cluster cluster = makeCluster();
  UpgradeContext context = m_upgradeContextFactory.create(cluster, UpgradeType.ROLLING,
      Direction.UPGRADE, UPGRADE_VERSION, new HashMap<String, Object>());
  context.setResolver(m_masterHostResolver);
  List<UpgradeGroupHolder> groups = m_upgradeHelper.createSequence(upgrade, context);
  assertEquals(7, groups.size());
  // grab the manual task out of ZK which has placeholder text
  UpgradeGroupHolder zookeeperGroup = groups.get(1);
  assertEquals("ZOOKEEPER", zookeeperGroup.name);
  ManualTask manualTask = (ManualTask) zookeeperGroup.items.get(0).getTasks().get(
      0).getTasks().get(0);
  assertEquals(1, manualTask.messages.size());
  assertEquals("This is a manual task with a placeholder of placeholder-rendered-properly",
      manualTask.messages.get(0));
}