@Test
    public void testSetupFromOpenID() {
        CredentialConnection conn = CredentialConnection.getInstance();
        conn.setDebug(true);
        try {
            conn.setupFromOpenID("hasdfttps://asldhlakjhs");
            fail("Malformed URL!");
        } catch (MalformedURLException e) {
            //ok
        } catch (IOException e) {
            e.printStackTrace();
            fail("Unexpected Exception.");
        }
        
        try {
            conn.setupFromOpenID("https://albedo2.dkrz.de/myopenid/_$_$_$_$_$_$_$");
            fail("Unexistent user!!");
        } catch (MalformedURLException e) {
            e.printStackTrace();
            fail("Unexpected Exception.");
        } catch (IOException e) {
            //ok
        }
        
        try {
            conn.setupFromOpenID("https://ipcc-ar5.dkrz.de/myopenid/dkrzpub1");
            //ok
        } catch (MalformedURLException e) {
            e.printStackTrace();
            fail("Unexpected Exception.");
        } catch (IOException e) {
            e.printStackTrace();
            fail("Unexpected Exception.");
        }
    }