@Test
public void should_not_delete_file_for_existing_external_asset() throws Exception {

    Page page = aFilledPage("page-id");
    Asset asset = anAsset().withId("UIID").withName("http://mycdn.com/myasset.js").withExternal(true).withType(JAVASCRIPT).build();
    page.getAssets().add(asset);
    assetService.delete(page, "UIID");
    //We must'nt call the delete method for an external resource
    verifyNoMoreInteractions(assetRepository);
}