@@ -0,0 +1,812 @@
+/*%0A * Copyright 2010-2011, Sikuli.org%0A * Released under the MIT License.%0A *%0A */%0Apackage org.sikuli.script;%0A%0Aimport org.junit.* ;%0Aimport static org.junit.Assert.* ;%0A%0Aimport java.io.*;%0Aimport javax.imageio.*;%0A%0Apublic class CaptureTest %0A%7B%0A    @Test%0A    public void test_capture() throws Exception%0A    %7B%0A       JButtons frame = new JButtons();%0A       Thread.sleep(500);%0A       Screen scr = new Screen();%0A       ScreenImage simg = scr.capture();%0A%0A       File out = new File(%22test_capture.png%22);%0A       ImageIO.write(simg.getImage(), %22png%22, out);%0A%0A       Finder finder = new Finder(out.getAbsolutePath());%0A       Pattern ptn = new Pattern(%22test-res/network.png%22);%0A       finder.find(ptn);%0A       assertTrue(finder.hasNext());%0A       Match m = finder.next();%0A       assertNotNull(m);%0A%0A       frame.dispose();%0A    %7D%0A%7D%0A%0A%0A

add CaptureTest for sikuli script