@Test
 public void testHasMutipleGlobalResultSets() {
   MockResultSet result0 = new MockResultSet("id0");
   MockResultSet result1 = new MockResultSet("id1");
   statementHandler.prepareGlobalResultSet(result0);
   assertFalse(statementHandler.hasMultipleGlobalResultSets());
   statementHandler.prepareGlobalResultSets(new MockResultSet[] {result1});
   assertTrue(statementHandler.hasMultipleGlobalResultSets());
   statementHandler.prepareGlobalResultSets(new MockResultSet[] {result0, result1});
   assertTrue(statementHandler.hasMultipleGlobalResultSets());
 }
 @Test
 public void testGetGlobalResultSet() {
   MockResultSet result0 = new MockResultSet("id0");
   MockResultSet result1 = new MockResultSet("id1");
   MockResultSet[] results = new MockResultSet[] {result0, result1};
   statementHandler.prepareGlobalResultSet(result0);
   assertSame(result0, statementHandler.getGlobalResultSet());
   MockResultSet[] returnedResults = statementHandler.getGlobalResultSets();
   assertEquals(1, returnedResults.length);
   assertSame(result0, returnedResults[0]);
   statementHandler.prepareGlobalResultSets(results);
   assertSame(result0, statementHandler.getGlobalResultSet());
   returnedResults = statementHandler.getGlobalResultSets();
   assertNotSame(results, returnedResults);
   assertEquals(2, returnedResults.length);
   assertSame(result0, returnedResults[0]);
   assertSame(result1, returnedResults[1]);
 }