@Test
public void testHasAddOrRemovePermissionForEmptyMetadata() {

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