@Test
public void testGetLatLonRectFromEnvelope() {

    ReferencedEnvelope input = new ReferencedEnvelope();
    LatLonRect result = null;
    try {
        result = GeoToolsNetCDFUtility.getLatLonRectFromEnvelope(input);
    } catch (TransformException ex) {
        Logger.getLogger(GeoToolsNetCDFUtilityTest.class.getName()).log(Level.SEVERE, null, ex);
        fail(ex.getMessage());
    }
    assertNotNull(result);
    assertEquals(result.getUpperRightPoint().getLatitude(), 0.0, 0.0);
    assertEquals(result.getUpperRightPoint().getLongitude(), -1.0, 0.0);
    assertEquals(result.getLowerLeftPoint().getLatitude(), -1.0, 0.0);
    assertEquals(result.getLowerLeftPoint().getLongitude(), 0.0, 0.0);
}