tx.commit();
s.close();
//now unit-test the bridge directly:
CalendarBridge bridge = new CalendarBridge();
HashMap<String, String> bridgeParams = new HashMap<String, String>();
bridgeParams.put( CalendarBridge.RESOLUTION_PARAMETER, Resolution.YEAR.toString() );
bridge.setParameterValues( bridgeParams );
assertEquals( "2000", bridge.objectToString( c ) );
bridgeParams.put( CalendarBridge.RESOLUTION_PARAMETER, Resolution.DAY.toString() );
bridge.setParameterValues( bridgeParams );
assertEquals( "20001215", bridge.objectToString( c ) );
}