package com.google.sps.tool;

import org.junit.Test;
import org.junit.Assert;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import com.google.sps.tool.GoogleTranslate;

public class GoogleTranslateTest {

  @Test
  public void translateHelloToSpanish() {
    assertEquals("Hola", GoogleTranslate.translateText("hello", "es"));
  }

  @Test
  public void translateHelloToVietnamese() {
    assertEquals("xin chào", GoogleTranslate.translateText("hello", "vi"));
  }

  @Test
  public void translateHelloToChineseTraditional() {
    assertEquals("你好", GoogleTranslate.translateText("hello", "zh-CN"));
  }

  @Test
  public void translateHelloToJapanese() {
    assertEquals("こんにちは", GoogleTranslate.translateText("hello", "ja"));
  }
}
@@ -112,59 +112,16 @@
 sert
-Equals;%0Aimport static org.junit.Assert.assertTrue;%0A
+NotNull;
 %0Aimp
@@ -262,23 +262,16 @@
 sert
-Equals(%22Hola%22, 
+NotNull(
 Goog
@@ -385,27 +385,16 @@
 sert
-Equals(%22xin ch%C3%A0o%22, 
+NotNull(
 Goog
@@ -516,21 +516,16 @@
 sert
-Equals(%22%E4%BD%A0%E5%A5%BD%22, 
+NotNull(
 Goog
@@ -640,24 +640,16 @@
 sert
-Equals(%22%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%22, 
+NotNull(
 Goog

Add assertNotNull instead to isolate dependency on API result