package org.wikipedia.test;

import android.util.Log;
import junit.framework.*;
import org.wikipedia.*;
import org.wikipedia.page.*;

import java.util.*;

public class PageTests extends TestCase {

    public void testJSONSerialization() throws Exception {
        ArrayList<Section> sections = new ArrayList<Section>();
        Section headSection = new Section(0, 1, null, null, "Hi there!");
        sections.add(headSection);
        for (int i = 1; i <= 10; i++) {
            sections.add(new Section(i, 1, "Something " + i, "Something_" + i, "Content Something" + i));
        }
        PageTitle title = new PageTitle(null, "Test", new Site("en.wikipedia.org"));
        PageProperties props = new PageProperties("2001-02-03T04:00:00Z", "Test", null, true);
        Page page = new Page(title, sections, props);
        assertEquals(page, new Page(page.toJSON()));
    }
}

@@ -26,33 +26,8 @@
 t;%0A%0A
-import android.util.Log;%0A
 impo

Remove unnecessary import