@Test
public void prismOpendapUriTest() {

    String gridSetLocation = "dods://cida.usgs.gov/thredds/dodsC/prism";
    List<String> gridVariableList = Arrays.asList("ppt");
    
    Range timeRange = null;
    try {
        timeRange = new Range(0, 1417);
    } catch (InvalidRangeException ignore) {}
    assertNotNull(timeRange);
    
    Range xLngRange = null;
    try {
        xLngRange = new Range(382, 552);
    } catch (InvalidRangeException ignore) {}
    assertNotNull(xLngRange);
    
    Range yLatRange = null;
    try {
        yLatRange = new Range(213, 312);
    } catch (InvalidRangeException ignore) {}
    assertNotNull(yLatRange);
    
    String openDapURL = null;
    try {
        openDapURL = OPeNDAPUtils.generateOpenDapURL(gridSetLocation, gridVariableList, prismGridDataSet.getNetcdfFile().getVariables(), timeRange, yLatRange, xLngRange);
        
    } catch (OPeNDAPUtilException ignore) {}
    
    assertNotNull(openDapURL);
    assertTrue(openDapURL.equals("http://cida.usgs.gov/thredds/dodsC/prism?lon[382:1:552],time[0:1:1417],lat[213:1:312],ppt[0:1:1417][213:1:312][382:1:552]"));
}