TypeExist extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "HEAD"; } TypeExist(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUriGeneration_compatibleForES55() { TypeExist typeExist = new TypeExist.Builder("happyprg").addType("seohoo").build(); assertEquals("HEAD", typeExist.getRestMethodName()); assertEquals("happyprg/_mapping/seohoo", typeExist.getURI(ElasticsearchVersion.V55)); }