public ChannelFuture answer(final InvocationOnMock args)
throws Throwable {
DefaultHttpResponse response =
(DefaultHttpResponse)args.getArguments()[0];
assertEquals(HttpResponseStatus.METHOD_NOT_ALLOWED, response.getStatus());
assertNull(response.headers().get(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN));
return null;
}
}
);