### Question:
ESResponse { public Map<String, Object> getSourceMap() { return sourceMap; } ESResponse(SearchResponse searchResponse, Map<String, Object> map);  ESResponse(UpdateResponse updateResponse); Map<String, Object> getSourceMap(); SearchHits getSearchHits(); SearchResponse getSearchResponse(); UpdateResponse getUpdateResponse();  }### Answer:
@Test public void getSourceMap() { SearchResponse srchResp = new SearchResponse(DEF_RESSEC, "id1", 1, 1, 1, 1, DEF_SHFAIL, DEF_CLUSTER); ESResponse esResp = new ESResponse(srchResp, Collections.emptyMap()); Map<String, Object> res = esResp.getSourceMap(); assertTrue(res.isEmpty()); Map<String, Object> srMap = new HashMap(); srMap.put("srMap_k1", "srMap_v1"); List<Double> list1 = new ArrayList(); list1.add(1.0); list1.add(0.0); srMap.put("srMap_k2", list1); esResp = new ESResponse(srchResp, srMap); res = esResp.getSourceMap(); assertEquals(2, res.size()); assertEquals("srMap_v1", res.get("srMap_k1")); assertEquals(list1.toString(), res.get("srMap_k2").toString()); assertNull(res.get("srMap_k3")); }