AuthTokenManager implements TokenManager { @Override public String getRealm() { return config.getRealm(); } AuthTokenManager(AuthSettings config); @Override void grantToken(); @Override String getAccessTokenString(); @Override String getRealm();  }
@Test public void testGetRealm() throws Exception { String r = this.tokenManager.getRealm(); Assert.assertEquals("realm1", r); }