@Override
    public Principal getSubjectDN() {
        if (this.subjectDn == null) {
            return x509Certificate.getSubjectDN();
        }
        
        val principal = mock(Principal.class);
        when(principal.getName()).thenReturn(this.subjectDn);
        return principal;
    }
Gets content.

@return the content
@throws Exception the exception
support/cas-server-support-x509-core/src/test/java/org/apereo/cas/adaptors/x509/authentication/CasX509Certificate.java