@Test
public void shouldCorrectlyDetermineIfUpgradeIsRequired() throws Exception {

    assertTrue(testUpgrades.isUpgradeRequired(-1));
    assertTrue(testUpgrades.isUpgradeRequired(0));
    assertTrue(testUpgrades.isUpgradeRequired(1));
    assertTrue(testUpgrades.isUpgradeRequired(2));
    assertTrue(testUpgrades.isUpgradeRequired(3));
    assertFalse(testUpgrades.isUpgradeRequired(4));
    assertFalse(testUpgrades.isUpgradeRequired(5));
}