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