@Test
public void testGetComponent() throws Exception {

  ComponentInfo component = metaInfo.getComponent(STACK_NAME_HDP,
      STACK_VERSION_HDP, SERVICE_NAME_HDFS, SERVICE_COMPONENT_NAME);
  Assert.assertEquals(component.getName(), SERVICE_COMPONENT_NAME);
  try {
    metaInfo.getComponent(STACK_NAME_HDP,
        STACK_VERSION_HDP, SERVICE_NAME_HDFS, NON_EXT_VALUE);
  } catch (StackAccessException e) {
  }
}