@Test
@Parameters(method = "invalidNames")
public void should_be_invalid_when_name_is_invalid(String name, String expectedErrorMessage) {

    exception.expect(ConstraintValidationException.class);
    exception.expectMessage(expectedErrorMessage);
    asset.setName(name);
    beanValidator.validate(asset);
}