@Test
public void testRuntimeException() throws Exception{
JSONObject jsonRequest = new JSONObject("{ \"method\": \"echoRuntimeException\", \"params\": [], \"id\": 2}");
WebConversation wc = new WebConversation();
WebRequest request = new PostMethodWebRequest( SERVICE_URL, new ByteArrayInputStream(jsonRequest.toString().getBytes("UTF-8")),"application/json");
WebResponse response = wc.getResource(request);
Assert.assertEquals(200, response.getResponseCode());
JSONObject jsonErr = new JSONObject(response.getText()).getJSONObject("error");