### Question:
NetezzaQueryTokenizer extends QueryTokenizer implements IQueryTokenizer { public void setScriptToTokenize(String script) { super.setScriptToTokenize(script); breakApartNewLines(); joinFragments(procPattern, false); _queryIterator = _queries.iterator(); } NetezzaQueryTokenizer(IQueryTokenizerPreferenceBean prefs); void setScriptToTokenize(String script); @Override TokenizerSessPropsInteractions getTokenizerSessPropsInteractions();  }### Answer:
@Test public final void testSetScriptToTokenizeOneProc() { classUnderTest.setScriptToTokenize(storedProcSQL); while (classUnderTest.hasQuery()) { System.err.println("query: "+classUnderTest.nextQuery()); } assertEquals(1, classUnderTest.getQueryCount()); }
@Test public final void testSetScriptToTokenizeMultipleProcs() { StringBuilder script = new StringBuilder(); for (int i = 0; i < 5; i++) { script.append(storedProcSQL); script.append("\n"); } classUnderTest.setScriptToTokenize(script.toString()); assertEquals(5, classUnderTest.getQueryCount()); }