EC2Context { public String getInstanceId() { return EC2MetadataUtils.getInstanceId(); }  String getInstanceId(); Map<String, String> getInstanceTags(); String getAutoScalingGroup(); List<String> getAutoScalingMembers(String autoScalingGroupName); List<String> getPrivateAutoScalingMemberIPs(String autoScalingGroupName); AutoScalingGroup getAutoScalingGroup(String autoScalingGroupName); Map<String, String> getAutoScalingGroupTags(String autoScalingGroupName); Instance getInstance();  }
@Test public void getHostId() { Assert.assertEquals("instanceId", this.context.getInstanceId()); }