@Test
public void testGetAWSRegion() {

    DynamoDBClientFetcherImpl dynamoDBClientFetcher = new DynamoDBClientFetcherImpl();
    assertEquals(dynamoDBClientFetcher.getAWSRegion("us-west-2"), "us-west-2");
    dynamoDBClientFetcher = new DynamoDBClientFetcherImpl("us-east-1");
    assertEquals(dynamoDBClientFetcher.getAWSRegion("us-west-2"), "us-west-2");
    assertEquals(dynamoDBClientFetcher.getAWSRegion(""), "us-east-1");
    assertEquals(dynamoDBClientFetcher.getAWSRegion(null), "us-east-1");
    // if this test is running in aws, then we'll get a valid region
    // value. if running on-prem, then we'll get an exception when ec2 meta
    // api is called. so we'll get a null value back
    dynamoDBClientFetcher = new DynamoDBClientFetcherImpl();
    dynamoDBClientFetcher.getAWSRegion(null);
}