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