diff --git a/language/analysis/pom.xml b/language/analysis/pom.xml
index 205f06392ca..2b9ab116120 100644
--- a/language/analysis/pom.xml
+++ b/language/analysis/pom.xml
@@ -18,7 +18,7 @@ limitations under the License.
jar
1.0-SNAPSHOT
com.google.cloud.language.samples
- entities
+ language-entities
diff --git a/language/analysis/src/test/java/com/google/cloud/language/samples/AnalyzeIT.java b/language/analysis/src/test/java/com/google/cloud/language/samples/AnalyzeIT.java
index 63b2663c790..59a6bb9cd67 100644
--- a/language/analysis/src/test/java/com/google/cloud/language/samples/AnalyzeIT.java
+++ b/language/analysis/src/test/java/com/google/cloud/language/samples/AnalyzeIT.java
@@ -59,10 +59,10 @@ public class AnalyzeIT {
@Test public void analyzeSentiment_returnPositive() throws Exception {
// Act
- Sentiment sentiment =
+ Sentiment sentiment =
analyzeApp.analyzeSentiment(
"Tom Cruise is one of the finest actors in hollywood and a great star!");
-
+
// Assert
assertThat((double)sentiment.getMagnitude()).isGreaterThan(0.0);
assertThat((double)sentiment.getPolarity()).isGreaterThan(0.0);
@@ -72,7 +72,7 @@ public class AnalyzeIT {
// Act
Sentiment sentiment =
analyzeApp.analyzeSentiment(
- "John was seriously injured in an accident");
+ "That was the worst performance I've seen in awhile.");
// Assert
assertThat((double)sentiment.getMagnitude()).isGreaterThan(0.0);
@@ -89,7 +89,7 @@ public class AnalyzeIT {
.collect(Collectors.toList());
// Assert
- assertThat(got).containsExactly("NOUN", "NOUN", "VERB",
+ assertThat(got).containsExactly("NOUN", "NOUN", "VERB",
"VERB", "ADP", "DET", "ADJ", "NOUN").inOrder();
}
}