@Test
public void should_migrate_style_asset_to_only_update_control_label_required_content_property() throws Exception {

    Asset style = anAsset().withType(CSS).withName("style.css").build();
    String initContent = "/* Add a red star after required inputs */\n" +
            ".control-label--required:after {\n" +
            "  content: \"*\";\n" +
            "  color: #C00;\n" +
            "}" +
            "\".ping .pong {\n\" +\n" +
            " content: \"*\";\n\" +\n" +
            " color: #C00;\n\" +\n" +
            " \"}";
    Page page = aPage()
            .withVersion("1.11.30").withAsset(style).build();
    when(pageAssetService.getAssetContent(page, style)).thenReturn(initContent);
    String finalContent = "/* Add a red star after required inputs */\n" +
            ".control-label--required:after {\n" +
            "  content: \" *\";\n" +
            "  color: #C00;\n" +
            "}" +
            "\".ping .pong {\n\" +\n" +
            " content: \"*\";\n\" +\n" +
            " color: #C00;\n\" +\n" +
            " \"}";
    step.migrate(page);
    verify(pageAssetService).save(page, expectedAsset("style.css"), finalContent.getBytes());
}