### Question:
Entry { @Override public String toString() { return type.name() + ": " + getValue(); } Entry();  Entry(EntryType type, Object value); EntryType getType(); Object getValue(); void setType(EntryType type); void setValue(Object value); @Override String toString();  }### Answer:
@Test public void testToString() { Entry entry = new Entry(EntryType.STRING, "StringEntry"); assertEquals("wrong text", "STRING: StringEntry", entry.toString()); }