### Question:
SauceConfigChangeServlet extends RegistryBasedServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (req.getSession(false) == null) { resp.sendRedirect(LoginServlet.class.getSimpleName()); return; } loadSauceConfigPage(resp); } SauceConfigChangeServlet(GridRegistry registry);  SauceConfigChangeServlet();  static final String RESOURCE_PAGE_FILE; static final String SAUCE_URL_PARAM; static final String USERNAME_PARAM; static final String RETRY_PARAM; static final String TIMEOUT_PARAM; static final String ACCESS_KEY_PARAM; static final String PARENT_TUNNEL_PARAM; static final String TUNNEL_IDENTIFIER_PARAM; static final String REQUIRE_USER_CREDENTIALS_PARAM; }### Answer:
@Test public void testDoGetForRedirectToLoginServlet() throws Exception { MockHttpServletRequest request = new MockHttpServletRequest(); MockHttpServletResponse response = new MockHttpServletResponse(); servlet.doGet(request, response); validateRedirectedToLoginServlet(response); }
@Test public void testDoGetForConfigChangePage() throws Exception { MockHttpServletRequest request = new MockHttpServletRequest(); request.getSession(true); MockHttpServletResponse response = new MockHttpServletResponse(); servlet.doGet(request, response); validateHtmlResponseContent(response, "SeLion Grid - Sauce Proxy Configuration", "Sauce URL"); }