@Test
public void testCompress() throws Exception
{

    CompressedArray arr = new CompressedArray();
    arr.write(10, 1);
    arr.write(11, 2);
    arr.write(12, 3);
    arr.flush();
    GHPoint coord = arr.get(0);
    assertEquals(10, coord.lat, 1e-6);
    assertEquals(1, coord.lon, 1e-6);
    coord = arr.get(1);
    assertEquals(11, coord.lat, 1e-6);
    assertEquals(2, coord.lon, 1e-6);
    coord = arr.get(2);
    assertEquals(12, coord.lat, 1e-6);
    assertEquals(3, coord.lon, 1e-6);
    assertNull(arr.get(3));
    // assertEquals(42, arr.calcMemInMB() * Helper.MB, 1e-3);
}