### Question:
OptionEntry implements Serializable { public String getValueString() { if (value==null) return ""; if (value.getClass().isEnum()) return ((Enum<?>)value).name(); return String.valueOf(value); } OptionEntry(Object value, String text, boolean active);  OptionEntry(Object value, String text); Object getValue(); boolean valueEquals(Object value); String getValueString(); String getText(); void setText(String text); boolean isActive(); void setActive(boolean active);  }### Answer:
@Test public void testGetValueString() { OptionEntry entry = new OptionEntry(Boolean.TRUE, "junit"); assertEquals("true", entry.getValueString()); entry = new OptionEntry(null, "junit"); assertEquals("", entry.getValueString()); }