@Test
public void should_not_resolveAssetPath_when_asset_invalid() {

    Page page = aPage().withId("page-id").build();
    Asset asset = aFilledAsset(page);
    exception.expect(ConstraintValidationException.class);
    doThrow(ConstraintValidationException.class).when(validator).validate(asset);
    assetRepository.resolveAssetPath(asset);
}