### Question:
TileSetCoordinateSpace { public PixelRange pixelRange(Envelope<C2D> bbox) { return this.mupTransform.toPixelRange(bbox); } 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_pixelrange_bbox() { PixelRange received = space1.pixelRange(new Envelope<>(50, 50, 1050, 1050, crs)); PixelRange expected = new PixelRange(0, 0, 200, 200); assertEquals(expected, received); received = space1.pixelRange(new Envelope<>(50, 950, 150, 1050, crs)); expected = new PixelRange(0, 0, 20, 20); assertEquals(expected, received); received = space1.pixelRange(new Envelope<>(0, 950, 1100, 1100, crs)); expected = new PixelRange(-10, -10, 220, 30); assertEquals(expected, received); }