DocumentResult extends JestResult { public String getId() { return getAsString(jsonObject.get("_id")); } DocumentResult(Gson gson); String getIndex(); String getType(); String getId(); Long getVersion();  }
@Test public void shouldFetchIdFromValidResponse() { assertEquals("testId", validResult.getId()); }