@Test
public void writePrismGridToGeoTiffTest() {

    List<String> gridVariableList = Arrays.asList("ppt");   // PRISM SET
    
    DateFormat format = new SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH);
    Date startDate = null;
    try {
        startDate = format.parse("2000-02-01");   // PRISM TEST SET
    } catch (ParseException e) {}
    assertNotNull(startDate);
    
    Date endDate = null;
    try {
        endDate = format.parse("2013-02-01");   // PRISM SET
    } catch (ParseException e) {}
    assertNotNull(endDate);
    
    File testFile = null;
    try {
        testFile = GeoTiffUtils.generateGeoTiffZipFromGrid(prismGridDataSet, gridVariableList, featureCollection, true, startDate, endDate, ".");
    } catch (GeoTiffUtilException e) {
        e.printStackTrace();
        fail();
    }
    
    assertTrue(testFile.exists());
    
    testFile.delete();
}