FrameFixture fixture = new FrameFixture(frame);
Insets insets = frame.getInsets();
fixture.show();
JLabelFixture lf = fixture.label("TheLabel");
Point pos = lf.component().getLocationOnScreen();
Dimension size = lf.component().getSize();
Robot robot = new Robot();
BufferedImage img = robot.createScreenCapture(new Rectangle(pos, dim));
fixture.close();