@Test(expected = ConstraintValidationException.class)
public void should_allow_to_save_a_custom_widget_with_name_containing_space() throws Exception {

    Widget widget = aWidget().name("hello world").custom().build();
    widgetRepository.create(widget);
}