@Before public void setUp() throws Exception { driver = MockMvcHtmlUnitDriverBuilder .webAppContextSetup(context) .withDelegate(new WebConnectionHtmlUnitDriver(BrowserVersion.CHROME)) .contextPath("") .build(); }