/******************************************************************************
* GoGoGeocodeTest
* Simple junit test for the GoGoGeocode class
* 
* Author:       Mitchell Bowden <mitchellbowden AT gmail DOT com>
* License:      MIT License: http://creativecommons.org/licenses/MIT/
******************************************************************************/

package com.msbmsb.gogogeocode;

import com.msbmsb.gogogeocode.GoGoGeocode;
import com.msbmsb.gogogeocode.Coordinates;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
 * Unit test for GoGoGeocode.
 */
public class GoGoGeocodeTest 
    extends TestCase
{
    /**
     * Create the test case
     *
     * @param testName name of the test case
     */
    public GoGoGeocodeTest( String testName )
    {
        super( testName );
    }

    /**
     * @return the suite of tests being tested
     */
    public static Test suite()
    {
        return new TestSuite( GoGoGeocodeTest.class );
    }

    /**
     * Rigourous Test
     */
    public void testGoGoGeocode()
    {
        String results = GoGoGeocode.geocodeToString("1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA");
        System.out.println(results);
        assertEquals(results, "-122.0829964,37.421708");
    }
}

@@ -390,16 +390,40 @@
 ocode;%0A%0A
+import java.lang.Math;%0A%0A
 import c
@@ -1119,22 +1119,27 @@
         
-String
+Coordinates
  results
@@ -1164,16 +1164,8 @@
 code
-ToString
 (%2216
@@ -1280,41 +1280,103 @@
 als(
-results
+Math.floor(results.longitude)
 , 
-%22
 -12
-2.0829964,37.421708%22
+3.0);%0A        assertEquals(Math.floor(results.latitude), 37.0
 );%0A 

Fix test to passing