AmazonClientCredentials { public String getRegion() { return region; } AmazonClientCredentials( String accessKey, String secretKey, String sessionToken, String region ); AWSCredentials getAWSCredentials(); String getRegion();  }
@Test public void testGetRegion_getValidRegion() { String expectedRegion = "us-east-1"; AmazonClientCredentials clientInitializer = new AmazonClientCredentials( "accessKey", "secretKey", "", "US East (N. Virginia)" ); Assert.assertEquals( expectedRegion, clientInitializer.getRegion() ); }
@Test public void testGetRegion_getDefaultRegion() { String expectedRegion = "us-east-1"; AmazonClientCredentials clientInitializer = new AmazonClientCredentials( "accessKey", "secretKey", "", null ); Assert.assertEquals( expectedRegion, clientInitializer.getRegion() ); }