* @throws Exception
* may cause an exception
*/
@Test
public void testValidCoordinates() throws Exception {
coords = new Coordinate(30, 20);
Assert.assertEquals((double) 30, coords.getLatitude());
Assert.assertEquals((double) 20, coords.getLongitude());
coords.setLatitude(60.8237);
Assert.assertEquals(60.8237, coords.getLatitude());
coords.setLongitude(-102.287);
Assert.assertEquals(-102.287, coords.getLongitude());
coords.setLatitude(-90);
Assert.assertEquals((double) -90, coords.getLatitude());
coords.setLongitude(180);
Assert.assertEquals((double) 180, coords.getLongitude());
coords = new Coordinate("-34.5342", "-78.2345");
Assert.assertEquals(-34.5342, coords.getLatitude());
Assert.assertEquals(-78.2345, coords.getLongitude());
}