@Test
public void testFailsOnInactive() throws IOException {

  servlet = new IsActiveServlet() {
    @Override
    protected boolean isActive() {
      return false;
    }
  };
  doGet();
  verify(resp, atLeastOnce()).sendError(
      eq(HttpServletResponse.SC_METHOD_NOT_ALLOWED),
      eq(IsActiveServlet.RESPONSE_NOT_ACTIVE));
}