@Test
public void testHasAddOrRemovePermissionForAdminFailed() {

    UserDetails userDetails = getMockUser(true);
    SSLCertificateMetadataDetails certificateMetadata = getSSLCertificateMetadataDetails();
    boolean canAdd = certificateUtils.hasAddOrRemovePermission(userDetails, certificateMetadata);
    assertFalse(canAdd);
}