Test in Selenium

import com.thoughtworks.selenium.DefaultSelenium;


public class Test {

public static DefaultSelenium selenium = new DefaultSelenium("localhost",
6666, "*iehta", "http://");

public static String fun1() throws Exception

{
try{
selenium.start();
selenium.open("//google.co.in");
Thread.sleep(30000);
selenium.type("q", "selenium");
selenium.click("btnG");

}catch(Exception e)
{

}

return "pass";
}

public static void main(String[] args) throws Exception

{
// TODO Auto-generated method stub
fun1();

}

}