@Test
public void should_reactive_asset_in_previable_when_asset_is_inactive_in_previewable() throws Exception {

    Page page = aPage()
            .withId("page-id")
            .withName("my-page")
            .withInactiveAsset("assetUIID")
            .build();
    when(repository.get("page-id")).thenReturn(page);
    Asset assetSent = anAsset().withId("assetUIID").withComponentId("page-id").withName("myasset.js").build();
    assetService.changeAssetStateInPreviewable(page, "assetUIID", true);
    assertThat(page.getInactiveAssets()).isEmpty();
    verify(repository).updateLastUpdateAndSave(page);
}