### Question:
TileSetCoordinateSpace { public PixelRange tilePixelRange(TileCoordinate coordinate) { Envelope<C2D> bbox = boundingBox(coordinate); 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_get_pixelrange_for_tile_coordinate() { PixelRange received = space1.tilePixelRange(TileCoordinate.valueOf(0, 0)); PixelRange expected = new PixelRange(90, 100, new Dimension(10, 10)); assertEquals(expected, received); received = space1.tilePixelRange(TileCoordinate.valueOf(2, 3)); expected = new PixelRange(110, 70, new Dimension(10, 10)); assertEquals(expected, received); received = space1.tilePixelRange(TileCoordinate.valueOf(-9, 10)); expected = new PixelRange(0, 0, new Dimension(10, 10)); assertEquals(expected, received); received = space2.tilePixelRange(TileCoordinate.valueOf(0, 3)); expected = new PixelRange(0, 0, new Dimension(256, 256)); assertEquals(expected, received); }