@Test
public void should_not_modify_previous_designer_version_when_no_migration_done_on_widget(){

    Migration<Widget> migrations = new Migration("1.0.2", mock(MigrationStep.class));
    WidgetMigrationApplyer widgetMigrationApplyer = new WidgetMigrationApplyer(Collections.singletonList(migrations));
    Widget widget = WidgetBuilder.aWidget().id("customWidget").version("1.0.2").previousDesignerVersion("1.0.2").build();
    widgetMigrationApplyer.migrate(widget);
    Assert.assertEquals(widget.getPreviousDesignerVersion(),"1.0.2");
    Assert.assertEquals(widget.getDesignerVersion(),"1.0.2");
}