Creates a
com.mockrunner.mock.web.WebMockObjectFactory based on another one.
The created
com.mockrunner.mock.web.WebMockObjectFactory will have its own
request and response objects. If you set createNewSession
to true it will also have its own session object.
The two factories will share one ServletContext.
Especially important for multithreading tests.
If you set createNewSession to false, the two factories
will share one session. This setting simulates multiple requests
from the same client.
Parameters: otherFactory - the other factory Parameters: createNewSession - create a new session for the new factory the created com.mockrunner.mock.web.WebMockObjectFactory