    @Test
    public void testToPrincipalWithEmptyString()
    {

        X500Principal principal =
            CertificateUtil.toPrincipal("");
        assertThat(principal, is(new X500Principal("")));
    }