EnumTreeBoxWrapper { @Override public String toString() { return translation; } EnumTreeBoxWrapper(Enum enumValue, String translation); Enum getEnumValue(); String getTranslation(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test void testToString() { assertThat(new EnumTreeBoxWrapper(TestEnum.TEST1, "test1").toString()).isEqualTo("test1"); assertThat(new EnumTreeBoxWrapper(TestEnum.TEST2, "test2").toString()).isEqualTo("test2"); }