@@ -0,0 +1,809 @@
+/**%0A * Copyright (C) 2012 Gist Labs, LLC. (http://gistlabs.com)%0A *%0A * This Source Code Form is subject to the terms of the Mozilla Public%0A * License, v. 2.0. If a copy of the MPL was not distributed with this%0A * file, You can obtain one at http://mozilla.org/MPL/2.0/.%0A */%0Apackage com.gistlabs.mechanize.integration.test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.json.JSONException;%0Aimport org.junit.Test;%0A%0Aimport com.gistlabs.mechanize.MechanizeAgent;%0Aimport com.gistlabs.mechanize.json.JsonPage;%0A%0A/**%0A * %0A */%0Apublic class AndroidJsonApiIT %7B%0A%0A%09@Test%0A%09public void testAndroidJsonApiDemo() throws JSONException %7B%0A%09%09MechanizeAgent agent = new MechanizeAgent();%0A%09%09JsonPage page = (JsonPage) agent.get(%22http://api.androidhive.info/contacts/%22);%0A%09%09%0A%09%09assertNotNull(page.json().getJSONArray(%22contacts%22));%0A%09%7D%0A%7D%0A

Add Json integration test for reading and parsing Json