public void testServerMessageContext() {
Mockery mockery = new Mockery();
final HttpServletRequest request = mockery.mock(HttpServletRequest.class);
final HttpServletResponse response = mockery.mock(HttpServletResponse.class);
DeploymentConfiguration config = new DeploymentConfiguration();
mockery.checking(new Expectations() {
{
allowing(request).getMethod(); will(returnValue(HttpMethod.GET));
}
});
ServerMessageContext smc = new ServerMessageContext(request, response, config);