will(returnValue(null));
oneOf(requestMock).getHeaders("Accept");
will(returnValue(values.elements()));
}
});
ServerMessageContext context =
new ServerMessageContext(requestMock, responseMock, new DeploymentConfiguration());
HttpHeadersImpl headers = new HttpHeadersImpl(context);
List<MediaType> mediaTypes = headers.getAcceptableMediaTypes();
assertEquals(1, mediaTypes.size());
assertEquals(MediaType.TEXT_XML_TYPE, headers.getAcceptableMediaTypes().get(0));
mockery.assertIsSatisfied();