KCAdapterContextTokenManager implements TokenManager { @Override public String getAccessTokenString() { return getKCSessionContext().getTokenString(); } KCAdapterContextTokenManager(HttpServletRequest request); @Override void grantToken(); @Override String getAccessTokenString(); @Override String getRealm();  }
@Test public void testGetAccessTokenString() throws Exception { String s = this.tested.getAccessTokenString(); Assert.assertEquals("token1", s); }