lPK.setServiceName(serviceName);
HostComponentDesiredStateEntity desiredStateEntity =
desiredStateDAO.findByPK(dPK);
HostComponentStateEntity stateEntity =
liveStateDAO.findByPK(lPK);
ServiceComponentHost sch = serviceComponentHostFactory.createExisting(sc,
stateEntity, desiredStateEntity);
Assert.assertNotNull(sch);
Assert.assertEquals(State.STARTING, sch.getState());