@Test public void fetchAwsInstanceIdentity () { AwsMetadataUtil.fetchAwsInstanceIdentity(uri); AwsMetadataUtil.AwsInstanceIdentity identity = AwsMetadataUtil.getAwsInstanceIdentity(); assertNotNull(identity); assertEquals("i-1234567890abcdef0", identity.getInstanceId()); assertEquals("us-west-2b", identity.getAvailabilityZone()); assertEquals("123456789012", identity.getAccountId()); assertEquals("ami-5fb8c835", identity.getImageId()); assertEquals("us-west-2", identity.getRegion()); }
private static void fetchAwsInstanceIdentity () { fetchAwsInstanceIdentity(AWS_DYNAMIC_INSTANCE_IDENTITY_DOCUMENT_URI); }
AwsMetadataUtil { private static void fetchAwsInstanceIdentity () { fetchAwsInstanceIdentity(AWS_DYNAMIC_INSTANCE_IDENTITY_DOCUMENT_URI); } }
AwsMetadataUtil { private static void fetchAwsInstanceIdentity () { fetchAwsInstanceIdentity(AWS_DYNAMIC_INSTANCE_IDENTITY_DOCUMENT_URI); } private  AwsMetadataUtil(); }
AwsMetadataUtil { private static void fetchAwsInstanceIdentity () { fetchAwsInstanceIdentity(AWS_DYNAMIC_INSTANCE_IDENTITY_DOCUMENT_URI); } private  AwsMetadataUtil(); static AwsInstanceIdentity getAwsInstanceIdentity(); }
AwsMetadataUtil { private static void fetchAwsInstanceIdentity () { fetchAwsInstanceIdentity(AWS_DYNAMIC_INSTANCE_IDENTITY_DOCUMENT_URI); } private  AwsMetadataUtil(); static AwsInstanceIdentity getAwsInstanceIdentity();  }