primaryKey.setClusterId(cluster.getClusterId());
primaryKey.setComponentName(componentName);
primaryKey.setServiceName(serviceName);
ServiceComponentDesiredStateEntity serviceComponentDesiredStateEntity =
serviceComponentDesiredStateDAO.findByPK(primaryKey);
ServiceComponent sc1 = serviceComponentFactory.createExisting(service,
serviceComponentDesiredStateEntity);
Assert.assertNotNull(sc1);
Assert.assertEquals(State.INSTALLED, sc1.getDesiredState());