@Test
public void should_migrate_page_with_data() throws Exception {

    Page pageWithData = aPage().withId("pageWithData").withData("myData", DataBuilder.aConstantData().value("default value").build()).build();
    dataToVariableMigrationStep.migrate(pageWithData);
    assertThat(pageWithData.getVariables().get("myData").getValue()).isEqualTo(Arrays.asList("default value"));
    assertThat(pageWithData.getData()).isNull();
}