DocumentResult extends JestResult { public Long getVersion() { return getAsLong(jsonObject.get("_version")); } DocumentResult(Gson gson); String getIndex(); String getType(); String getId(); Long getVersion();  }
@Test public void shouldFetchVersionFromValidResponse() { assertEquals(Long.valueOf(2), validResult.getVersion()); }