IAuthorization authorization = user.createAuthorization("my note", IAuthorization.SCOPE_SESSION, 600);
assertNotNull(authorization.getToken());
assertEquals(authorization.getScopes(), IAuthorization.SCOPE_SESSION);
// operations
IOpenShiftConnection connection =
new TestConnectionBuilder().token(authorization.getToken()).disableSSLCertificateChecks().create();
authorization = connection.getUser().getAuthorization();
// verifications
assertEquals(authorization.getScopes(), IAuthorization.SCOPE_SESSION);
assertEquals(authorization.getNote(), "my note");
//check for time remaining on the token now