### Question:
AddContactController extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { getServletContext().getRequestDispatcher(formView).forward(request, response); }  GlobalAddressBook getAddressBook(); void setAddressBook(GlobalAddressBook addressBook); String getSuccessedSubmitRedirect(); void setSuccessedSubmitRedirect(String successedSubmitRedirect); String getFormView(); void setFormView(String formView);  }### Answer:
@Test public void testDoGetShowForm() throws ServletException, IOException { HttpServletRequest mockRequest = mock(HttpServletRequest.class); HttpServletResponse mockResponse = mock(HttpServletResponse.class); controller.doGet(mockRequest, mockResponse); verify(mockDispather, times(1)).forward(mockRequest, mockResponse); }