WordCap implements Comparable<WordCap>, Serializable { public String getWord() { return word; } WordCap(String word, boolean isCapitalized); String getWord(); boolean isCapitalized(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(WordCap o); @Override String toString();  }
@Test public void testGetWord() { WordCap wordCap = new WordCap("aWord", false); assertEquals(wordCap.getWord(), "aWord"); }