### Question:
ESResponse { public UpdateResponse getUpdateResponse() { return updateResponse; } ESResponse(SearchResponse searchResponse, Map<String, Object> map);  ESResponse(UpdateResponse updateResponse); Map<String, Object> getSourceMap(); SearchHits getSearchHits(); SearchResponse getSearchResponse(); UpdateResponse getUpdateResponse();  }### Answer:
@Test public void getUpdateResponse() { SearchResponse srchResp = new SearchResponse(DEF_RESSEC, "id1", 1, 1, 1, 1, DEF_SHFAIL, DEF_CLUSTER); ESResponse esResp = new ESResponse(srchResp, Collections.emptyMap()); UpdateResponse res = esResp.getUpdateResponse(); assertNull(res); }