@Test
public void testHasAddOrRemovePermissionForAdminIfEmptyOwner() {

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