@Test public void getService_GivenElasticsearchArn_ShouldReturnEs() { Assert.assertEquals("es", new AwsResource(elasticsearchArn).getService()); }
public String getService() { return service; }
AwsResource { public String getService() { return service; } }
AwsResource { public String getService() { return service; } AwsResource(String arn); }
AwsResource { public String getService() { return service; } AwsResource(String arn); String getArn(); String getResource(); String getService(); String getRegion(); @Override boolean equals(Object o); @Override int hashCode(); }
AwsResource { public String getService() { return service; } AwsResource(String arn); String getArn(); String getResource(); String getService(); String getRegion(); @Override boolean equals(Object o); @Override int hashCode();  }