@Test
public void should_return_error_when_adding_asset_with_type_invalid() {

    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage(is("Asset type is required"));
    assetService.save(aPage().withId("page-id").build(), anAsset().withName("http://mycdn.com/myasset.js").withType(null).build());
}