@Test(expectedExceptions = J4pRemoteException.class)
public void remoteExceptionErrorValue() throws IOException, J4pException {

    HttpClient client = prepareMocks("utf-8", ERROR_VALUE_RESPONSE);
    J4pClient j4p = new J4pClient(TEST_URL,client);
    Map<J4pQueryParameter, String> options = Maps.newHashMap();
    options.put(J4pQueryParameter.SERIALIZE_EXCEPTION, "true");
    options.put(J4pQueryParameter.INCLUDE_STACKTRACE, "false");
y {
4p.execute(TEST_REQUEST, options);
catch (J4pRemoteException e) {
ssertEquals(e.getErrorValue().toJSONString(), "{\"test\":\"ok\"}");
hrow e;
il("No exception was thrown");
}