### Question:
IndexRequest implements Request { @Override public String getHttpMethodName() { return HTTP_METHOD_NAME; } protected  IndexRequest(Builder builder); String getId(); String getIndex(); String getType(); final ItemSource<ByteBuf> getSource(); @Override String getURI(); @Override String getHttpMethodName(); @Override ItemSource serialize(); void release(); static final String HTTP_METHOD_NAME; static final int ESTIMATED_URI_LENGTH; static final String FORWARD_SLASH; }### Answer:
@Test public void getRestMethodNameReturnsStaticVariable() { IndexRequest indexRequest = createIndexRequestBuilder() .index(UUID.randomUUID().toString()) .build(); String restMethodName = indexRequest.getHttpMethodName(); assertEquals(IndexRequest.HTTP_METHOD_NAME, restMethodName); }