createNewServiceComponentHost("HDFS", "DATANODE", "h1", false);
sch.setDesiredState(State.INSTALLED);
sch.setState(State.INSTALLING);
sch.setStackVersion(new StackId("HDP-1.0.0"));
ServiceComponentHostResponse r =
sch.convertToResponse();
Assert.assertEquals("HDFS", r.getServiceName());
Assert.assertEquals("DATANODE", r.getComponentName());
Assert.assertEquals("h1", r.getHostname());
Assert.assertEquals("C1", r.getClusterName());
Assert.assertEquals(State.INSTALLED.toString(), r.getDesiredState());