Explain extends SingleResultAbstractDocumentTargetedAction { protected Explain(Builder builder) { super(builder); this.payload = builder.query; } protected  Explain(Builder builder); @Override String getRestMethodName();  }
@Test public void explain() { Explain explain = new Explain.Builder("twitter", "tweet", "1", "query").build(); assertEquals("POST", explain.getRestMethodName()); assertEquals("twitter/tweet/1/_explain", explain.getURI(ElasticsearchVersion.UNKNOWN)); assertEquals("query", explain.getData(null)); }