@Test(expected = IOException.class)
public void testSendPostFail() throws IOException {

    AddressService addressService = new DefaultAddressService();
    DefaultHttpRequestProcessor p = new DefaultHttpRequestProcessor(addressService,
        new LookoutConfig());
    HttpPost httpPost = new HttpPost("http://localhost/ok");
    try {
        httpPost.setEntity(new StringEntity("a"));
    } catch (UnsupportedEncodingException e) {
    }
    p.sendPostRequest(httpPost, null);
}