@Test
public void daymetOpendapUriTest() {

    String gridSetLocation = "dods://daymet.ornl.gov/thredds/dodsC/daymet-agg/daymet-agg.ncml";
    List<String> gridVariableList = Arrays.asList("prcp", "srad", "swe");
    
    Range timeRange = null;
    try {
        timeRange = new Range(9763, 10128);
    } catch (InvalidRangeException ignore) {}
    assertNotNull(timeRange);
    
    Range xLngRange = null;
    try {
        xLngRange = new Range(1241, 1852);
    } catch (InvalidRangeException ignore) {}
    assertNotNull(xLngRange);
    
    Range yLatRange = null;
    try {
        yLatRange = new Range(1903, 2369);
    } catch (InvalidRangeException ignore) {}
    assertNotNull(yLatRange);
    
    String openDapURL = null;
    try {
        openDapURL = OPeNDAPUtils.generateOpenDapURL(gridSetLocation, gridVariableList, daymetGridDataSet.getNetcdfFile().getVariables(), timeRange, yLatRange, xLngRange);
        
    } catch (OPeNDAPUtilException ignore) {}
    
    assertNotNull(openDapURL);    
    assertTrue(openDapURL.equals("http://daymet.ornl.gov/thredds/dodsC/daymet-agg/daymet-agg.ncml?x[1241:1:1852],y[1903:1:2369],time[9763:1:10128],lambert_conformal_conic,prcp[9763:1:10128][1903:1:2369][1241:1:1852],srad[9763:1:10128][1903:1:2369][1241:1:1852],swe[9763:1:10128][1903:1:2369][1241:1:1852]"));
}