Source:
<code>public TestConfiguration(final WebApplicationContext context, final HttpSession httpSession) throws Exception { Assert.requireNonNull(context, "context"); Assert.requireNonNull(httpSession, "httpSession"); DefaultPlatformConfiguration defaultPlatformConfiguration = ConfigurationFileLoader.loadConfiguration(); <START> RemotingConfiguration remotingConfiguration = new RemotingConfiguration(defaultPlatformConfiguration); <END> final ExecutorService clientExecutor = Executors.newSingleThreadExecutor(); final ClientSessionStoreImpl clientSessionStore = new ClientSessionStoreImpl(); final Function<ClientModelStore, AbstractClientConnector> connectorProvider = s -> new DolphinTestClientConnector(s, clientExecutor, c -> sendToServer(c)); clientContext = new TestClientContextImpl(PlatformClient.getClientConfiguration(), new URI("http://dummy"), connectorProvider, clientSessionStore); final ControllerRepository controllerRepository = new ControllerRepository(new DefaultClasspathScanner(defaultPlatformConfiguration.getListProperty(ROOT_PACKAGE_FOR_CLASSPATH_SCAN))); final TestSpringManagedBeanFactory containerManager = new TestSpringManagedBeanFactory(context); containerManager.init(context.getServletContext()); final DolphinContextProviderMock dolphinContextProviderMock = new DolphinContextProviderMock(); dolphinTestContext = new TestDolphinContext(remotingConfiguration, new HttpClientSessionImpl(httpSession), dolphinContextProviderMock, containerManager, controllerRepository, createEmptyCallback()); dolphinContextProviderMock.setCurrentContext(dolphinTestContext); }</code><technical_language>final</technical_language>

Target:
public TestConfiguration(final WebApplicationContext context, final HttpSession httpSession) throws Exception { Assert.requireNonNull(context, "context"); Assert.requireNonNull(httpSession, "httpSession"); final DefaultPlatformConfiguration defaultPlatformConfiguration = ConfigurationFileLoader.loadConfiguration(); final RemotingConfiguration remotingConfiguration = new RemotingConfiguration(defaultPlatformConfiguration); final ExecutorService clientExecutor = Executors.newSingleThreadExecutor(); final ClientSessionStoreImpl clientSessionStore = new ClientSessionStoreImpl(); final Function<ClientModelStore, AbstractClientConnector> connectorProvider = s -> new DolphinTestClientConnector(s, clientExecutor, c -> sendToServer(c)); clientContext = new TestClientContextImpl(PlatformClient.getClientConfiguration(), new URI("http://dummy"), connectorProvider, clientSessionStore); final ControllerRepository controllerRepository = new ControllerRepository(new DefaultClasspathScanner(defaultPlatformConfiguration.getListProperty(ROOT_PACKAGE_FOR_CLASSPATH_SCAN))); final TestSpringManagedBeanFactory containerManager = new TestSpringManagedBeanFactory(context); containerManager.init(context.getServletContext()); final DolphinContextProviderMock dolphinContextProviderMock = new DolphinContextProviderMock(); dolphinTestContext = new TestDolphinContext(remotingConfiguration, new HttpClientSessionImpl(httpSession), dolphinContextProviderMock, containerManager, controllerRepository, createEmptyCallback()); dolphinContextProviderMock.setCurrentContext(dolphinTestContext); }