@Test
public void should_not_change_an_asset_external_property() throws Exception {

    AssetExternalMigrationStep<Page> migrationStep = new AssetExternalMigrationStep<>();
    Page page = aPage()
            .withAsset(anAsset()
                    .withExternal(false).withName("bonita.jpg"))
            .withAsset(anAsset()
                    .withExternal(true).withName("https://www.bonitasoft.com"))
            .build();
    migrationStep.migrate(page);
    assertThat(page.getAssets())
            .extracting("name", "external")
            .containsOnly(
                    tuple("bonita.jpg", false),
                    tuple("https://www.bonitasoft.com", true));
}