### Question:
TileSetCoordinateSpace { public Dimension tileSetPixelDimension() { int h = (int) (height(extent) / unitsPerPixel); int w = (int) (width(extent) / unitsPerPixel); return new Dimension(w, h); } TileSetCoordinateSpace(Point<C2D> origin, Dimension tileDimension, Envelope<C2D> extent, double unitsPerPixel); Envelope<C2D> boundingBox(TileCoordinate coordinate); PixelRange tilePixelRange(TileCoordinate coordinate); Dimension tileSetPixelDimension(); double tileWidthInMapUnits(); double tileHeightInMapUnits(); TileCoordinate tileCoordinateContaining(Point<C2D> point, boolean lowerLeftInclusive); double unitsPerPixel(); PixelRange pixelRange(Envelope<C2D> bbox); Pixel toPixel(Point<C2D> point); Point<C2D> toPoint(Pixel pixel);  }### Answer:
@Test public void test_tileset_pixeldimension() { Dimension received = space1.tileSetPixelDimension(); Dimension expected = new Dimension(200, 200); assertEquals(expected, received); TileSetCoordinateSpace tcs = new TileSetCoordinateSpace(point(crs, c(500, 500)), new Dimension(20, 40), new Envelope<>(0, 0, 1000, 5000, crs), 10); expected = new Dimension(100, 500); received = tcs.tileSetPixelDimension(); assertEquals(expected, received); }