@Test
public void should_create_a_widget_and_set_his_id() throws Exception {

    Widget expectedWidget = aWidget().name("aName").build();
    Widget createdWidget = widgetRepository.create(expectedWidget);
    expectedWidget.setId("customAName");
    expectedWidget.setCustom(true);
    assertThat(expectedWidget).isEqualTo(createdWidget);
    assertThat(jsonFile(createdWidget)).exists();
}