Code example for X500Principal

1
                + "83530302e583530305072696e636970616cf90dff3c88b877c703000078707572" 
                + "00025b42acf317f8060854e002000078700000006a30683117301506035504031" 
                + "30e7777772e676f6f676c652e636f6d31133011060355040a130a476f6f676c65" 
                + "20496e63311630140603550407130d4d6f756e7461696e2056696577311330110" 
                + "603550408130a43616c69666f726e6961310b300906035504061302555378"; 
        X500Principal actual = new X500Principal("C=US, "
                                                 + "ST=California, " 
                                                 + "L=Mountain View, " 
                                                 + "O=Google Inc, " 
                                                 + "CN=www.google.com"); 
        new SerializationTester<X500Principal>(actual, expected).test();
    } 
 
    /** 
     * ASN1-encoded trusted certificate #946059622 for 
     * Entrust.net. This certificate uses the T61String (aka 
     * TeletexString or TELETEXSTRING) encoding for one 
     * organizationalUnitNames: 
     * 
     * "www.entrust.net/CPS_2048 incorp. by ref. (limits liab.)" 
     */