@Test
public void should_save_a_new_property() throws Exception {

    Widget aWidget = addToRepository(aWidget().custom().build());
    Property expectedProperty = aProperty().build();
    widgetRepository.addProperty(aWidget.getId(), expectedProperty);
    Widget widget = getFromRepository(aWidget.getId());
    assertThat(widget.getProperties()).contains(expectedProperty);
}