@Test
public void should_delete_existing_asset() throws Exception {

    Page page = aFilledPage("page-id");
    Asset asset = anAsset().withId("UIID").withName("myfile.js").withType(JAVASCRIPT).build();
    page.getAssets().add(asset);
    assetService.delete(page, "UIID");
    verify(assetRepository).delete(asset);
}