@Test
public void testHasAddOrRemovePermissionForNonAdminSuccessfully() {

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