Assert.assertEquals("HDP-1.0.0", sc.getDesiredStackVersion().getStackId());
ServiceComponentDesiredStateDAO serviceComponentDesiredStateDAO =
injector.getInstance(ServiceComponentDesiredStateDAO.class);
ServiceComponentDesiredStateEntityPK primaryKey =
new ServiceComponentDesiredStateEntityPK();
primaryKey.setClusterId(cluster.getClusterId());
primaryKey.setComponentName(componentName);
primaryKey.setServiceName(serviceName);
ServiceComponentDesiredStateEntity serviceComponentDesiredStateEntity =
serviceComponentDesiredStateDAO.findByPK(primaryKey);
ServiceComponent sc1 = serviceComponentFactory.createExisting(service,