assertNotNull("Login ticket should be valid", MoriaController.getServiceProperties(ticket));
    public void testInitiateMoriaAuthentication()            throws AuthorizationException, IllegalInputException, UnknownTicketException, InoperableStateException {        controllerInitialization();        /* Illegal paramenters */        try {            MoriaController.initiateAuthentication(validAttrs, validPrefix, validPostfix, false, null);            fail("IllegalInputException should be raised, principal is null");        } catch (IllegalInputException success) {        }        try {            MoriaController.initiateAuthentication(validAttrs, validPrefix, validPostfix, false, "");            fail("IllegalInputException should be raised, principal is an empty string");        } catch (IllegalInputException success) {        }        try {            MoriaController.initiateAuthentication(null, validPrefix, validPostfix, false, validPrincipal);            fail("IllegalInputException should be raised, attributes is null");        } catch (IllegalInputException success) {        }        try {            MoriaController.initiateAuthentication(validAttrs, null, validPostfix, false, validPrincipal);            fail("IllegalInputException should be raised, prefix is null");        } catch (IllegalInputException success) {        }        try {            MoriaController.initiateAuthentication(validAttrs, "", validPostfix, false, validPrincipal);            fail("IllegalInputException should be raised, prefix is an empty string");        } catch (IllegalInputException success) {        }        try {            MoriaController.initiateAuthentication(validAttrs, validPrefix, null, false, validPrincipal);            fail("IllegalInputException should be raised, postfix is null");        } catch (IllegalInputException success) {        }        /* Illegal attribute request */        String[] attrs = new String[]{"illegal1", "illegal2"};        try {            MoriaController.initiateAuthentication(attrs, validPrefix, validPostfix, false, validPrincipal);            fail("AuthorizationException should be raised, illegal attributes request.");        } catch (AuthorizationException success) {        }        /* Illegal URL */        try {            MoriaController.initiateAuthentication(validAttrs, "foobar", validPostfix, false, validPrincipal);            fail("IllegalInputException should be raised, illegal URL (no protocol).");        } catch (IllegalInputException success) {        }        /* Legal use */        String ticket;        ticket = MoriaController.initiateAuthentication(validAttrs, validPrefix, validPostfix, false, validPrincipal);        assertNotNull("Login ticket should be valid", MoriaController.getServiceProperties(ticket));        ticket = MoriaController.initiateAuthentication(new String[]{}, validPrefix, validPostfix, false, validPrincipal);        // assertTrue("Login ticket should be valid", MoriaController.validateLoginTicket(ticket));    }