public static String dumpBindsSortedByKey(final com.google.inject.Module... modules) {
        final Map<String, ModuleInfo> allModuleInfoMap = buildModuleInfoMap(modules);

        final StringBuilder stringBuilder = new StringBuilder();
        allModuleInfoMap.values()
                .stream()
                .flatMap(moduleInfo -> moduleInfo.binds.values().stream())
                .sorted(Comparator.comparing(bindInfo -> bindInfo.getKey().getTypeLiteral().toString()))
                .forEach(bindInfo -> {
                    dumpBindInfo(bindInfo, stringBuilder);
                    stringBuilder
                            .append("  (")
                            .append(ConsoleColour.cyan(bindInfo.moduleInfo.moduleClass))
                            .append(")\n");
                });
        return stringBuilder.toString();
    }
Create a {@link MockBinderBuilder} to bind multiple interfaces to a {@link Mockito} mock.
stroom-test-common/src/main/java/stroom/test/common/util/guice/GuiceTestUtil.java