@Test
public void testHasAddOrRemovePermissionForNonAdminFailed() {

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