@Test
public void testNegotiate() throws IOException, ServletException {
final String securityPackage = "Negotiate";
final SimpleFilterChain filterChain = new SimpleFilterChain();
final SimpleHttpRequest request = new SimpleHttpRequest();
final String clientToken = BaseEncoding.base64().encode(
WindowsAccountImpl.getCurrentUsername().getBytes(Charsets.UTF_8));
request.addHeader("Authorization", securityPackage + " " + clientToken);
final SimpleHttpResponse response = new SimpleHttpResponse();
this.filter.doFilter(request, response, filterChain);
final Authentication auth = SecurityContextHolder.getContext().getAuthentication();