}
@Test
public void testDateValue() {
final Date tv = Calendar.getInstance().getTime();
final DateValue v = new DateValue( tv );
assertEquals( tv,
v.getValue() );
try {
v.setValue( "any string will do" );
fail( "We should not be able to use DateValue.setValue(String)" );
} catch ( UnsupportedOperationException e ) {
//Swallow this is expected
} catch ( Exception e ) {
fail( "Unexpected exception thrown by DateValue.setValue(String)" );