public void testCopyMemoryResultSet() {
MemoryMetaData metadata = new MemoryMetaData( new String[][] { { "col1", "col2" } }, null );
MemoryResultSet data1 = new MemoryResultSet( metadata );
data1.addRow( new Object[] { "a", new Integer( 1 ) } );
data1.addRow( new Object[] { "b", new Integer( 2 ) } );
data1.addRow( new Object[] { "c", new Integer( 3 ) } );
MemoryResultSet data = (MemoryResultSet) data1.memoryCopy();