Stub out methods that were added with new versions of servlet libs.

These go alongside the existing stubs in the testing code. This fixes
the build.