@Test void testSaveContext() { SecurityContext securityContext = mock(SecurityContext.class); MockHttpServletRequest request = new MockHttpServletRequest(); MockHttpServletResponse response = new MockHttpServletResponse(); tokenAwareSecurityContextRepository.saveContext(securityContext, request, response); verify(defaultSecurityContextRepository).saveContext(securityContext, request, response); }
@Override public void saveContext( SecurityContext context, HttpServletRequest request, HttpServletResponse response) { getSecurityContextRepository(request).saveContext(context, request, response); }
TokenAwareSecurityContextRepository implements SecurityContextRepository { @Override public void saveContext( SecurityContext context, HttpServletRequest request, HttpServletResponse response) { getSecurityContextRepository(request).saveContext(context, request, response); } }
TokenAwareSecurityContextRepository implements SecurityContextRepository { @Override public void saveContext( SecurityContext context, HttpServletRequest request, HttpServletResponse response) { getSecurityContextRepository(request).saveContext(context, request, response); } TokenAwareSecurityContextRepository(
      SecurityContextRepository tokenSecurityContextRepository,
      SecurityContextRepository defaultSecurityContextRepository); }
TokenAwareSecurityContextRepository implements SecurityContextRepository { @Override public void saveContext( SecurityContext context, HttpServletRequest request, HttpServletResponse response) { getSecurityContextRepository(request).saveContext(context, request, response); } TokenAwareSecurityContextRepository(
      SecurityContextRepository tokenSecurityContextRepository,
      SecurityContextRepository defaultSecurityContextRepository); @Override SecurityContext loadContext(HttpRequestResponseHolder requestResponseHolder); @Override void saveContext(
      SecurityContext context, HttpServletRequest request, HttpServletResponse response); @Override boolean containsContext(HttpServletRequest request); }
TokenAwareSecurityContextRepository implements SecurityContextRepository { @Override public void saveContext( SecurityContext context, HttpServletRequest request, HttpServletResponse response) { getSecurityContextRepository(request).saveContext(context, request, response); } TokenAwareSecurityContextRepository(
      SecurityContextRepository tokenSecurityContextRepository,
      SecurityContextRepository defaultSecurityContextRepository); @Override SecurityContext loadContext(HttpRequestResponseHolder requestResponseHolder); @Override void saveContext(
      SecurityContext context, HttpServletRequest request, HttpServletResponse response); @Override boolean containsContext(HttpServletRequest request);  }