package stroom.util.servlet;

import com.google.inject.AbstractModule;
import com.google.inject.util.Providers;

import javax.servlet.http.HttpServletRequest;

public class MockServletModule extends AbstractModule {
    @Override
    protected void configure() {
        bind(HttpServletRequest.class).toProvider(HttpServletRequestHolder.class);
        bind(SessionIdProvider.class).toProvider(Providers.of(null));
    }
}

@@ -256,16 +256,91 @@
 ure() %7B%0A
+        final SessionIdProvider sessionIdProvider = () -%3E %22mockSessionId%22;%0A
         
@@ -458,35 +458,34 @@
 ).to
-Provider(Providers.of(null)
+Instance(sessionIdProvider
 );%0A 

Fix test