@Test
public void should_be_invalid_when_type_null() {

    exception.expect(ConstraintValidationException.class);
    exception.expectMessage("Asset type may not be null");
    asset.setType(null);
    beanValidator.validate(asset);
}