@Test
public void appropriateFiltersAreUsedOnModuleDepRetrieval() {

    final Delivery delivery = DataModelFactory.createDelivery(
            SAMPLE_NAME,
            SAMPLE_VERSION,
            LocalDate.now().toString(),
            Arrays.asList("one"));
    final DbModule m1 = makeModule("one");
    final RepositoryHandler repoHandler = makeRepoHandler(m1);
    final DependencyHandler depHandler = mock(DependencyHandler.class);
    withDeps(depHandler, "one", "one_a");
    final DataFetchingUtils sut = new DataFetchingUtils();
    // Act
    final Set<String> deliveryDependencies = sut.getDeliveryDependencies(repoHandler, depHandler, delivery);
    // Assert
    ArgumentCaptor<FiltersHolder> filterCollector = ArgumentCaptor.forClass(FiltersHolder.class);
    verify(depHandler, times(1)).getModuleDependencies(eq("one"), filterCollector.capture());
    Decorator d = filterCollector.getValue().getDecorator();
    assertFalse(d.getShowCorporate());
    assertTrue(d.getShowThirdparty());
}