HttpUtils { public static String delete(String url) throws IOException { return delete(url, 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);  }
@Test public void testDelete() throws Exception { String result = HttpUtils.delete("http: assertEquals(expected,result); }