@Test
public void should_trigger_delete_on_workspaceResourceHandler_when_deleting_a_widget() throws Exception {

    widgetRepository.save(aWidget().id("widgetId1").custom().build());
    widgetRepository.delete("widgetId1");
    verify(workspaceResourceHandler).delete(widgetRepository.resolvePath("widgetId1"));
}