### Question:
GridDef { public static GridDef createRaster(int width, int height) { return new GridDef(width, height, 0.0, 0.0, 0.0, 0.0); } private  GridDef(int width, int height, double easting, double northing, double resolutionX, double resolutionY); static GridDef createGlobal(double resolution); static GridDef createGlobal(int width, int height); static GridDef createRaster(int width, int height); int getTime(); int getWidth(); int getHeight(); double getEasting(); double getNorthing(); double getResolutionX(); double getResolutionY(); double getResolution(); int wrapX(int x); double getCenterLon(int x); double getCenterLat(int y); final double getDiagonal(int x, int y); final int getGridX(double lon, boolean crop); final int getGridY(double lat, boolean crop); Rectangle2D getLonLatRectangle(int x, int y); Rectangle getGridRectangle(Rectangle2D lonLatRectangle); Rectangle getGridRectangle(double minLon, double minLat, double maxLon, double maxLat); Rectangle getGridRectangle(int x, int y, GridDef gridDef); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testCreateRaster() { final GridDef raster = GridDef.createRaster(100, 50); assertNotNull(raster); assertEquals(100, raster.getWidth()); assertEquals(50, raster.getHeight()); assertEquals(0.0, raster.getEasting(), 1e-8); assertEquals(0.0, raster.getNorthing(), 1e-8); assertEquals(0.0, raster.getResolutionX(), 1e-8); assertEquals(0.0, raster.getResolutionY(), 1e-8); }