@Override
    public boolean isTransparent() {
        return this.texturePaint == null && this.color.getAlpha() == 0;
    }
@Test
    public void isTransparentTest() {
        Paint paint = new AwtPaint();
        Assert.assertFalse(paint.isTransparent());

        paint.setColor(Color.TRANSPARENT);
        Assert.assertTrue(paint.isTransparent());

        Bitmap bitmap = org.mapsforge.map.awt.graphics.AwtGraphicFactory.INSTANCE.createBitmap(1, 1);
        paint.setBitmapShader(bitmap);
        Assert.assertFalse(paint.isTransparent());
    }