@Test
public void testServiceOsSpecificsInheritance() throws Exception {

  // Test command script determination in parent
  ServiceInfo service = metaInfo.getService(STACK_NAME_HDP, "2.0.7", "HDFS");
  Assert.assertEquals("parent-package-def",
          service.getOsSpecifics().get("any").getPackages().get(0).getName());
  service = metaInfo.getService(STACK_NAME_HDP, "2.0.7", "HBASE");
  Assert.assertEquals(2, service.getOsSpecifics().keySet().size());
  // Test command script inheritance
  service = metaInfo.getService(STACK_NAME_HDP, "2.0.8", "HBASE");
  Assert.assertEquals(2, service.getOsSpecifics().keySet().size());
  // Test command script override
  service = metaInfo.getService(STACK_NAME_HDP, "2.0.8", "HDFS");
  Assert.assertEquals("child-package-def",
          service.getOsSpecifics().get("any").getPackages().get(0).getName());
}