### Question:
FrameBuffer implements Buffer { @Override public void draw(int x, int y) { pixels[getIndex(x, y)] = Pixel.BLACK; } FrameBuffer(); @Override void clear(int x, int y); @Override void draw(int x, int y); @Override void clearAll(); @Override Pixel[] getPixels(); static final int WIDTH; static final int HEIGHT; }### Answer:
@Test public void testDraw() { var frameBuffer = new FrameBuffer(); frameBuffer.draw(0, 0); Assert.assertEquals(Pixel.BLACK, frameBuffer.getPixels()[0]); }