* @param domainName the domain name to be configured.
*/
public static void runDomainVerificationService(String adminEmail, String password,
String domainName) {
try {
DomainVerificationService client =
new DomainVerificationService(adminEmail, password, domainName, "test");
GenericEntry entry = client.retrieveCnameVerificationStatus();
LOGGER.log(Level.INFO, "Retrieving CNAME verification status: " + entry.getAllProperties());
entry = client.updateVerifiedStatus(entry, true);
LOGGER.log(Level.INFO, "Updated CNAME verfication status: " + entry.getAllProperties());
entry = client.retrieveMxVerificationStatus();
LOGGER.log(Level.INFO, "Retrieving MX verification status: " + entry.getAllProperties());
entry = client.updateVerifiedStatus(entry, true);
LOGGER.log(Level.INFO, "Updating MX verfication status: " + entry.getAllProperties());
} catch (AuthenticationException e) {
LOGGER.log(Level.SEVERE, e.getMessage(), e);
} catch (IllegalArgumentException e) {