made mocks compatible with Servlet API 3.0