### Question:
Pixels { public static List<Point> around(Point point) { List<Point> points = new ArrayList<Point>(); for (int x2 = point.x - 1; x2 <= point.x + 1; x2++) { for (int y2 = point.y - 1; y2 <= point.y + 1; y2++) { if (x2 != point.x || y2 != point.y) { points.add(new Point(x2, y2)); } } } return points; }  static PixelRangeAssertion in(final Raster raster); static List<Point> around(Point point);  }### Answer:
@Test public void testAround() throws Exception { List<Point> pixels = Pixels.around(new Point(5, 5)); assertEquals(Arrays.asList(new Point(4, 4), new Point(4, 5), new Point(4, 6), new Point(5, 4), new Point(5, 6), new Point(6, 4), new Point(6, 5), new Point(6, 6)), pixels); }