@Test(expected = MalformedJsonException.class)
public void should_check_that_json_is_well_formed_while_uploading_a_json_asset() throws Exception {

    MockMultipartFile file = new MockMultipartFile("asset.json", "asset.json", "application/javascript", "{ not json }".getBytes());
    assetService.upload(file, aPage().build(), "json");
}