}
@Test
public void testComponentUpgradeCompleteReport() throws AmbariException, InvalidStateTransitionException {
ActionManager am = getMockActionManager();
Cluster cluster = getDummyCluster();
@SuppressWarnings("serial")
Set<String> hostNames = new HashSet<String>(){{
add(DummyHostname1);
}};
clusters.mapHostsToCluster(hostNames, DummyCluster);
Service hdfs = cluster.addService(HDFS);
hdfs.persist();
hdfs.addServiceComponent(DATANODE).persist();
hdfs.getServiceComponent(DATANODE).addServiceComponentHost(DummyHostname1).persist();
hdfs.addServiceComponent(NAMENODE).persist();
hdfs.getServiceComponent(NAMENODE).addServiceComponentHost(DummyHostname1).persist();