Get extends SingleResultAbstractDocumentTargetedAction { @Override public String getRestMethodName() { return "GET"; } protected  Get(Builder builder); @Override String getRestMethodName(); @Override String getPathToResult();  }
@Test public void getDocument() { Get get = new Get.Builder("twitter", "1").type("tweet").build(); assertEquals("GET", get.getRestMethodName()); assertEquals("twitter/tweet/1", get.getURI(ElasticsearchVersion.UNKNOWN)); }