HarvesterData { @Transient public boolean getValueAsBoolean() { return Boolean.parseBoolean(value); }  @Id HarvesterDataId getId(); void setId(HarvesterDataId id); @Column(nullable = false, length = 255) String getValue(); void setValue(ISODate value); void setValue(String value); @Transient int getValueAsInt(); @Transient long getValueAsLong(); void setValue(long value); @Transient boolean getValueAsBoolean(); void setValue(boolean value); @Transient ISODate getValueAsDate(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testGetValueAsBoolean() throws Exception { final HarvesterData data = new HarvesterData(); final ISODate value = new ISODate(); data.setValue(value); assertEquals(value, data.getValueAsDate()); }