MoriaController.attemptSingleSignOn(loginTicketId, ssoTicketId);
try { MoriaController.attemptSingleSignOn(loginTicketId, ssoTicketId); }  catch (UnknownServicePrincipalException failure) { fail("UnknownServicePrincipalException should not be caught"); }
    public void testInvalidateSSOTicket() throws MoriaControllerException {        controllerInitialization();        final boolean denySSO = false;        /* Non-existing SSO ticket, should be ignored */        MoriaController.invalidateSSOTicket("doesNotExist");        /* Existing SSO ticket */        String loginTicketId = MoriaController.initiateAuthentication(validAttrs, validPrefix, validPostfix, false,                                                                      validPrincipal);        final Map tickets = MoriaController.attemptLogin(loginTicketId, null, validUsername, validPassword, denySSO);        final String ssoTicketId = (String) tickets.get(MoriaController.SSO_TICKET);        /* Verify that SSO is possible */        loginTicketId = MoriaController.initiateAuthentication(validAttrs, validPrefix, validPostfix, false,                                                               validPrincipal);        MoriaController.attemptSingleSignOn(loginTicketId, ssoTicketId);        /* Invalidate ticket and verify that SSO is no longer possible */        MoriaController.invalidateSSOTicket(ssoTicketId);        loginTicketId = MoriaController.initiateAuthentication(validAttrs, validPrefix, validPostfix, false,                                                               validPrincipal);        try {            MoriaController.attemptSingleSignOn(loginTicketId, ssoTicketId);            fail("UnknownTicketException should be raised, invalidated SSO-ticket");        } catch (UnknownTicketException success) {        }    }