public class Fixture_Request_Stub extends MockFixtureAdapter<Request> {
@Override
public void setUp(final MockFixture.Context fixtureContext) {
final Mockery mockery = fixtureContext.getMockery();
final Request mock = createMock(fixtureContext, Request.class);
mockery.checking(new Expectations() {
{
// must provide explicit expectation, since Locale is final.
allowing(mock).getLocale();
will(returnValue(Locale.getDefault()));