@Test
public void testGetUpgradePathWithCyclesReturnsShortestPathWhenNotZero() {

	UpgradeInfo upgradeInfo1 = createUpgradeInfo("0.0.0", "0.1.0");
	UpgradeInfo upgradeInfo2 = createUpgradeInfo("0.1.0", "0.2.0");
	UpgradeInfo upgradeInfo3 = createUpgradeInfo("0.2.0", "1.0.0");
	UpgradeInfo upgradeInfo4 = createUpgradeInfo("1.0.0", "2.0.0");
	UpgradeInfo upgradeInfo5 = createUpgradeInfo("0.0.0", "2.0.0");
	ReleaseGraphManager releaseGraphManager = new ReleaseGraphManager(
		Arrays.asList(
			upgradeInfo1, upgradeInfo2, upgradeInfo3, upgradeInfo4,
			upgradeInfo5));
	List<UpgradeInfo> upgradePath = releaseGraphManager.getUpgradeInfos(
		"0.1.0", "2.0.0");
	Assert.assertEquals(
		Arrays.asList(upgradeInfo2, upgradeInfo3, upgradeInfo4),
		upgradePath);
}