private static Map<String, ModuleInfo> buildModuleInfoMap(final com.google.inject.Module[] modules) {
        final Injector injector = Guice.createInjector(modules);

        final Map<Key<?>, Binding<?>> allBindings = injector.getAllBindings();
        final Map<String, ModuleInfo> allModuleInfoMap = new HashMap<>();

        allBindings.forEach((key, binding) ->
                addBindInfo(allModuleInfoMap, key, binding));
        return allModuleInfoMap;
    }
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