@Test
  public void testVersionDefinitionStackRepoUpdateLinkExists(){
    // Get the base sqoop service
    StackInfo stack = stackManager.getStack("HDP", "2.1.1");
    String latestUri = stack.getRepositoryXml().getLatestURI();
    assertTrue(latestUri != null);

    stack = stackManager.getStack("HDP", "2.0.8");
    latestUri = stack.getRepositoryXml().getLatestURI();
    assertTrue(latestUri == null);
  }
Tests that {@link UpgradePack} and {@link ConfigUpgradePack} instances are correctly initialized
post-unmarshalling.

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/stack/StackManagerTest.java