### Question:
TokenElement implements Serializable { public List<String> getTags() { return tags; } TokenElement(String word, List<String> tagList, int offset, String reading);  TokenElement(String word, List<String> tagList, int offset); String getSurface(); List<String> getTags(); int getOffset(); String getReading(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void testTagsImmutable() { assertThrows(UnsupportedOperationException.class, () -> { TokenElement token = new TokenElement("foobar", java.util.Arrays.asList("tag"), 0); List<String> tags = token.getTags(); tags.add("baz"); }); }