### Question:
EnsureOakIndexServlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) { try { response.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED); response.getWriter().println(IOUtils.toString(this.getClass().getResourceAsStream("EnsureOakIndexServlet_doGet.html"), "UTF-8")); } catch (IOException e) { log.warn("Caught IOException while handling doGet() in the Ensure Oak Index Servlet.", e); response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } }    }### Answer:
@Test public void testGet() { servlet.doGet(context.request(),context.response()); assertEquals(HttpServletResponse.SC_METHOD_NOT_ALLOWED,context.response().getStatus()); }