}
@Test
public void should_add_screenshot_element_test_is_GUI_test() {
final BufferedImage image = new BufferedImage(10, 10, TYPE_BYTE_BINARY);
new EasyMockTemplate(screenshotTaker, guiTestRecognizer) {
@Override protected void expectations() {
expect(guiTestRecognizer.isGUITest(testClassNameFrom(test), testMethodNameFrom(test))).andReturn(true);
expect(screenshotTaker.takeDesktopScreenshot()).andReturn(image);
}