progress.setListener(new CollectCreatedMocks(createdMocks));
}
public String getWarnings() {
List<Invocation> unused = new UnusedStubsFinder().find(createdMocks);
List<Invocation> all = new AllInvocationsFinder().find(createdMocks);
List<InvocationMatcher> allInvocationMatchers = InvocationMatcher.createFrom(all);
String warnings = new WarningsPrinterImpl(unused, allInvocationMatchers, false).print();
return warnings;