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

    Widget widget = aWidget().property(aProperty().name("ze invalid name")).custom().build();
    widgetRepository.create(widget);
}