@Test(expectedExceptions = J4pException.class,expectedExceptionsMessageRegExp = ".*JSONArray.*")
public void invalidArrayResponse() throws MalformedObjectNameException, J4pException, IOException {

    HttpClient client = prepareMocks(null,ARRAY_RESPONSE);
    J4pClient j4p = new J4pClient(TEST_URL,client);
    Map<J4pQueryParameter,String> opts = new HashMap<J4pQueryParameter, String>();;
    opts.put(J4pQueryParameter.IGNORE_ERRORS,"true");
    j4p.execute(TEST_REQUEST, opts);
}