AuthenticationClient { public void setKeyToken(Token keyToken) { symAuth.setKeyToken(keyToken); } AuthenticationClient(String sessionUrl, String keyUrl);  AuthenticationClient(String sessionUrl, String keyUrl, Client httpClient);  AuthenticationClient(SymphonyClientConfig symphonyClientConfig);  AuthenticationClient(String sessionUrl, String keyUrl, Client httpClientForSessionToken, Client httpClientForKeyToken); SymAuth authenticate(); void sessionLogout(SymAuth symAuth); SymExtensionAppAuth authenticateExtensionApp(String appToken); SymAuth authenticateApp(); SymAuth authenticateAppUser(SymUser symUser, SymAuth symAuth); void setKeystores(String serverTruststore, String truststorePass, String clientKeystore, String keystorePass); boolean isLoggedIn(); Token getKeyToken(); void setKeyToken(Token keyToken); Token getSessionToken(); @SuppressWarnings("unused") void setSessionToken(Token sessionToken);  }
@Test public void setKeyToken() throws Exception { authenticationClient.setKeyToken(TestFactory.getSymAuth().getKeyToken()); assertEquals("TOKEN_VALUE", authenticationClient.authenticate().getKeyToken().getToken()); }