anchor.diff:  }
   ----
   
  -
   We could also perform the exact same setup using the following:
   
   [source,java]
   ----
   MockMvc mockMvc = MockMvcBuilders
   		.webAppContextSetup(context)
  +		.apply(springSecurity())
   		.build();
   
   webClient = MockMvcWebClientBuilder
  
positive.code: ----
  @After
  public void destroy() {
  	if(driver != null) {
  		driver.close();
  	}
  }
  
negative.code: 		.apply(springSecurity())
  		.build();
  
  driver = MockMvcHtmlUnitDriverBuilder
  		.mockMvcSetup(mockMvc)
  		// for illustration only - defaults to ""
  		.contextPath("")
  		// By default MockMvc is used for localhost only;
  		// the following will use MockMvc for example.com and example.org too
  		.useMockMvcForHosts("example.com","example.org")
  		.build();
  ----
  
  This is more verbose, but by building the `WebDriver` with a `MockMvc` instance we have
  the full power of `MockMvc` at our fingertips.
  
  [TIP]
  ====
  For additional information on creating a `MockMvc` instance refer to
  <<spring-mvc-test-server-setup-options>>.
  ====
  
  [[spring-mvc-test-server-htmlunit-geb]]
  ===== MockMvc and Geb
  