refresh();
// default bounds
assertEquals(new Rectangle(0, 0, 450, 300), frame.getBounds());
// set new size
{
TopBoundsSupport topBoundsSupport = frame.getTopBoundsSupport();
topBoundsSupport.setSize(500, 400);
refresh();
assertEquals(new Rectangle(0, 0, 500, 400), frame.getBounds());
}
}