Is there a freely available Java tool for testing SQL?

Avi Kak

The Java InstantDB relational database management system has a command line module called commsql for testing SQL, as well as a Swing based utility called SQLBuilder. The classes are oriented towards InstantDB, but the source is included to allow modification for accessing other databases.