@Test
public void testNeedToApplyUpgrade() {

    // given
    Assert.assertTrue(new File(task.oldRoot).exists());
    Assert.assertFalse(new File(task.newRoot).exists());
    // when
    // then
    Assert.assertTrue(task.haveToBeApply());
}