### Question:
IndexTemplateRequest implements Request { @Override public String getURI() { StringBuilder sb = new StringBuilder("_template/"); sb.append(templateName); return sb.toString(); } private  IndexTemplateRequest(Builder builder); @Override String getURI(); @Override String getHttpMethodName(); @Override ItemSource serialize(); static final String HTTP_METHOD_NAME; }### Answer:
@Test public void uriContainsRequestType() { IndexTemplateRequest request = createDefaultTestObjectBuilder().build(); String uri = request.getURI(); assertTrue(uri.startsWith("_template")); }
@Test public void uriContainsTemplateName() { String expectedTemplateName = UUID.randomUUID().toString(); IndexTemplateRequest request = createDefaultTestObjectBuilder() .withTemplateName(expectedTemplateName) .build(); String uri = request.getURI(); assertTrue(uri.endsWith(expectedTemplateName)); }