task.setConfigurations(WrapUtil.toSet(configuration1, configuration2));
assertConfigurationsIsPassedToRenderer(configuration1, configuration2);
}
private void assertConfigurationsIsPassedToRenderer(final Configuration configuration1, final Configuration configuration2) throws IOException {
final DependencyReportRenderer renderer = context.mock(DependencyReportRenderer.class);
final ResolvedConfiguration resolvedConfiguration1 = context.mock(ResolvedConfiguration.class, "ResolvedConf1");
final ResolvedConfiguration resolvedConfiguration2 = context.mock(ResolvedConfiguration.class, "ResolvedConf2");
task.setRenderer(renderer);
task.setConfigurations(WrapUtil.toSet(configuration1, configuration2));