@Test
public void should_migrate_a_page() throws Exception {

    Migration<Page> migration = new Migration<>("1.0.2", mock(MigrationStep.class));
    LiveRepositoryUpdate<Page> liveRepositoryUpdate = new LiveRepositoryUpdate<>(repository, loader, singletonList(migration));
    Page page = createPage("1.0.1");
    liveRepositoryUpdate.migrate();
    page.setDesignerVersion("1.0.2");
    verify(persister).save(folder.getRoot().toPath().resolve("pageJson"), page);
}