@Test
public void preservesGraphicsColor() {

    final Surface ctx = AxisPaintTest.context();
    final Graphics2D graphics = Mockito.mock(Graphics2D.class);
    Mockito.when(graphics.getColor()).thenReturn(Color.BLUE);
    new AxisPaint(ctx).paint(graphics);
    Mockito.verify(graphics).setColor(Color.BLUE);
}