public static <T> Provider<T> mockProvider(final Class<T> type) {
        return () -> Mockito.mock(type);
    }
Build a {@link Provider} for a mocked class.
stroom-test-common/src/main/java/stroom/test/common/TestUtil.java