public void testDetect() throws Exception {
System.out.println("testDetect");
GoogleAPI.setHttpReferrer("http://code.google.com/p/google-api-translate-java/");
DetectResult detectResult = Detect.execute("Hello world");
assertEquals(Language.ENGLISH, detectResult.getLanguage());
assertTrue(detectResult.getConfidence() > 0);
}