Test if getBounds method of Graphics object is working correctly