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

        final StringBuilder stringBuilder = new StringBuilder();
        allModuleInfoMap.values()
                .stream()
                .filter(ModuleInfo::isRoot)
                .findAny()
                .ifPresent(moduleInfo ->
                        dumpModule(moduleInfo, stringBuilder, ""));
        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