"public class Test extends Canvas {",
" public Test() {",
" setBorder('1px solid red');",
" }",
"}");
canvas.refresh();
// "red" border should be at (0,0)
{
Image image = canvas.getImage();
RGB rgb = getPixelRGB(image, 0, 0);
assertRGB(rgb, 0xFF, 0x00, 0x00);