### Question:
HttpUtils { public static String put(String url, String sendData,Map<String,String> headers) throws IOException { return put(url, sendData, headers, null,null); }  static String get(String url); static String delete(String url); static String post(String url, String sendData,Map<String,String> headers); static String put(String url, String sendData,Map<String,String> headers); static String get(String url, String decodeCharset); static String delete(String url, String decodeCharset); static String post(String url, String sendData, Map<String,String> headers,String encodeCharset,String decodeCharset); static String put(String url, String sendData,Map<String,String> headers,String encodeCharset,String decodeCharset); static String form(String url, Map<String,String> sendData);  }### Answer:
@Test public void testPut() throws Exception { Map<String, String> headers = Maps.newHashMap(); headers.put(HttpHeaders.CONTENT_TYPE,"application/json"); String result = HttpUtils.put("http: assertEquals(expected,result); }