### Question:
BufferedIndex extends AbstractDocumentTargetedAction<DocumentResult> implements BulkableAction<DocumentResult> { @Override public final String getRestMethodName() { return HTTP_METHOD_NAME; } protected  BufferedIndex(Builder builder); @Override String getData(Gson gson); @Override DocumentResult createNewElasticSearchResult(String responseBody, int statusCode, String reasonPhrase, Gson gson); final ItemSource<ByteBuf> getSource(); @Override final String getRestMethodName(); @Override final String getBulkMethodName(); void release();  }### Answer:
@Test public void getRestMethodNameReturnsStaticVariable() { BufferedIndex bufferedIndex = new BufferedIndex.Builder(mock(ByteBufItemSource.class)).build(); String restMethodName = bufferedIndex.getRestMethodName(); Assert.assertEquals(BufferedIndex.HTTP_METHOD_NAME, restMethodName); }