WordPosCap implements Comparable<WordPosCap>, Serializable { public String getWord() { return word; } WordPosCap(String word, PartOfSpeech partOfSpeech, boolean isCapitalized); String getWord(); PartOfSpeech getPartOfSpeech(); boolean isCapitalized(); PosCap toPosCap(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(WordPosCap o); @Override String toString();  }
@Test public void testGetWord() { WordPosCap wordPosCap = new WordPosCap("aWord", PartOfSpeech.NN, false); assertEquals(wordPosCap.getWord(), "aWord"); }