4344454647484950
} @Test(expected = KeystoneAuthenticationException.class) public void listTenants_forgedToken() throws Exception { KeystoneAuthenticationClient client = new KeystoneAuthenticationClient(); KeystoneAuthenticationToken fakeToken = buildFakeToken("HELLOWORLD"); client.listTenants(fakeToken); }
52535455565758
private KeystoneAuthenticationToken buildFakeToken(String tokenCode) { Access auth = new Access(); Token tokenObject = new Token(); tokenObject.setId(tokenCode); auth.setToken(tokenObject); return new KeystoneAuthenticationToken(auth); }