InstanceAWSProvider implements InstanceProvider { boolean validateAWSAccount(final String awsAccount, final String docAccount, StringBuilder errMsg) { if (!awsAccount.equalsIgnoreCase(docAccount)) { LOGGER.error("ZTS AWS Domain Lookup account id: {}", awsAccount); errMsg.append("mismatch between account values - instance document: ").append(docAccount); return false; } return true; }  @Override Scheme getProviderScheme(); @Override void initialize(String provider, String providerEndpoint, SSLContext sslContext,
            KeyStore keyStore); ResourceException error(String message); ResourceException error(int errorCode, String message); @Override InstanceConfirmation confirmInstance(InstanceConfirmation confirmation); @Override InstanceConfirmation refreshInstance(InstanceConfirmation confirmation);  }
@Test public void testValidateAWSAccount() { StringBuilder errMsg = new StringBuilder(256); InstanceAWSProvider provider = new InstanceAWSProvider(); assertTrue(provider.validateAWSAccount("1234", "1234", errMsg)); assertFalse(provider.validateAWSAccount("1235", "1234", errMsg)); }