### Question:
GCodeWord implements Comparable { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof GCodeWord)) return false; GCodeWord gCodeWord = (GCodeWord) o; if (!word.equals(gCodeWord.word)) return false; return true; } GCodeWord(String word, Double value); String getWord(); Double getValue(); @Override boolean equals(Object o); @Override int hashCode(); int compareTo(Object o);  }### Answer:
@Test public void equalityTest() { GCodeWord t1 = new GCodeWord("G4", null); GCodeWord t2 = new GCodeWord("G4", null); assertTrue("Same GCode must return equal", t1.equals(t2)); t1 = new GCodeWord("G4", 12.0); t2 = new GCodeWord("G4", 13.0); assertTrue("Same GCode must return equal", t1.equals(t2)); }