@Test
public void should_not_modify_previous_designer_version_when_no_migration_done() throws Exception {

    Migration<Page> migration = new Migration("1.0.0", mock(MigrationStep.class));
    PageMigrationApplyer migrationApplyer = new PageMigrationApplyer(Collections.singletonList(migration), widgetService);
    Page page = PageBuilder.aPage().withId("myPage").withVersion("1.0.0").withPreviousDesignerVersion("1.0.0").build();
    migrationApplyer.migrate(page);
    Assert.assertEquals(page.getPreviousDesignerVersion(),"1.0.0");
    Assert.assertEquals(page.getDesignerVersion(),"1.0.0");
}