@Test
public void should_find_widget_by_id() throws Exception {

    Widget input = aWidget().id("input").build();
    Widget label = aWidget().id("label").build();
    addToRepository(input, label);
    //input is used by label
    assertThat(widgetRepository.getByIds(Sets.newHashSet("input", "label"))).hasSize(2)
            .extracting("id").containsOnly("input", "label");
}