@Test
public void should_return_error_when_adding_asset_with_name_empty() {

    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage(is("Asset URL is required"));
    //We construct a mockfile (the first arg is the name of the property expected in the controller
    assetService.save(aPage().withId("page-id").build(), anAsset().withName("").build());
}