@Test
  public void getOpaqueRegionChangesWhenFillChanged() {
    RectBounds or = shape.getOpaqueRegion();
    assertNotNull(or);

    shape.setFillPaint(null);
    assertNull(shape.getOpaqueRegion());

    shape.setFillPaint(Color.BLACK);
    assertNotNull(shape.getOpaqueRegion());
    assertEquals(or, shape.getOpaqueRegion());
  }
  @Test
  public void getOpaqueRegionChangesWhenModeChanged() {
    RectBounds or = shape.getOpaqueRegion();
    assertNotNull(or);

    shape.setMode(NGShape.Mode.EMPTY);
    assertNull(shape.getOpaqueRegion());

    shape.setMode(NGShape.Mode.FILL);
    assertNotNull(shape.getOpaqueRegion());
    assertEquals(or, shape.getOpaqueRegion());

    shape.setMode(NGShape.Mode.STROKE);
    assertNull(shape.getOpaqueRegion());

    shape.setMode(NGShape.Mode.STROKE_FILL);
    assertNotNull(shape.getOpaqueRegion());
    assertEquals(or, shape.getOpaqueRegion());
  }