JestResult { protected String[] getKeys() { return pathToResult == null ? null : pathToResult.split("/"); } private  JestResult();  JestResult(JestResult source);  JestResult(Gson gson); String getPathToResult(); void setPathToResult(String pathToResult); Object getValue(String key); boolean isSucceeded(); void setSucceeded(boolean succeeded); String getJsonString(); void setJsonString(String jsonString); String getErrorMessage(); int getResponseCode(); void setResponseCode(int responseCode); void setErrorMessage(String errorMessage); JsonObject getJsonObject(); void setJsonObject(JsonObject jsonObject); @Deprecated @SuppressWarnings("rawtypes") Map getJsonMap(); void setJsonMap(Map<String, Object> resultMap); String getSourceAsString(); List<String> getSourceAsStringList(); T getSourceAsObject(Class<T> clazz); T getSourceAsObject(Class<T> clazz, boolean addEsMetadataFields); List<T> getSourceAsObjectList(Class<T> type); List<T> getSourceAsObjectList(Class<T> type, boolean addEsMetadataFields); @Override String toString(); static final String ES_METADATA_ID; static final String ES_METADATA_VERSION; }
@Test public void getKeysWithoutPathToResult() { assertNull(result.getKeys()); }