@Test
 public void testWrite() {
   try {
     rm.setPresenceMap("C:/Temp/Rasters/age.txt", species);
   } catch (IOException e) {
     e.printStackTrace();
   }
   ow.setFolder("C:/Temp/Rasters");
   ow.setName("presence_test.txt");
   try {
     ow.write(rm, species);
     Raster a = RasterReader.readRaster("C:/Temp/Rasters/age.txt");
     Raster b = RasterReader.readRaster("C:/Temp/Rasters/presence_test.txt");
     assertEquals(a.getCellsize(), b.getCellsize(), 1E-12);
     assertEquals(a.getRows(), b.getRows());
     assertEquals(a.getCols(), b.getCols());
     assertEquals(a.getXll(), b.getXll(), 1E-12);
     assertEquals(a.getYll(), b.getYll(), 1E-12);
     assertEquals(b.getValue(1, 1), 1.0, 1E-12);
     assertEquals(b.getValue(2, 2), 1.0, 1E-12);
     assertEquals(b.getValue(3, 3), 1.0, 1E-12);
     assertEquals(b.getValue(0, 10), 1.0, 1E-12);
     assertEquals(b.getValue(1, 11), 1.0, 1E-12);
     assertEquals(b.getValue(2, 12), 1.0, 1E-12);
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
 @Before
 public void setup() {
   List<String> speciesList = new ArrayList<String>();
   speciesList.add("Test_1");
   speciesList.add("Test_2");
   rm.setSpeciesList(speciesList);
 }