@Test
public void testValidateAWSProvider() {

    StringBuilder errMsg = new StringBuilder(256);
    InstanceAWSProvider provider = new InstanceAWSProvider();
    assertFalse(provider.validateAWSProvider("provider", null, errMsg));
    assertFalse(provider.validateAWSProvider("athenz.aws.us-east-1", "", errMsg));
    assertFalse(provider.validateAWSProvider("athenz.aws.us-east-1", "us-west-2", errMsg));
    assertFalse(provider.validateAWSProvider("athenz.awsus-west-2", "us-west-2", errMsg));
    assertTrue(provider.validateAWSProvider("athenz.aws.us-west-2", "us-west-2", errMsg));
}