}
@Test
public void tokenSavedOnLogin() throws MojoExecutionException, IOException, URISyntaxException {
DefaultOAuth2RefreshToken refreshToken = new DefaultOAuth2RefreshToken("refreshtoken");
DefaultOAuth2AccessToken accessToken = new DefaultOAuth2AccessToken("accesstoken");
accessToken.setRefreshToken(refreshToken);
when(client.login()).thenReturn(accessToken);
HashMap<String, Object> info = new HashMap<String, Object>(1);
info.put("version", "2");
when(client.getCloudInfo()).thenReturn(new CloudInfo(info));