private void testCommon() {
String s;
ScriptReader source;
s = "$$;$$;";
source = new ScriptReader(new StringReader(s));
assertEquals("$$;$$", source.readStatement());
assertEquals(null, source.readStatement());
source.close();
s = "a;';';\";\";--;\n;/*;\n*/;//;\na;";
source = new ScriptReader(new StringReader(s));
assertEquals("a", source.readStatement());
assertEquals("';'", source.readStatement());
assertEquals("\";\"", source.readStatement());
assertEquals("--;\n", source.readStatement());
assertEquals("/*;\n*/", source.readStatement());
assertEquals("//;\na", source.readStatement());
assertEquals(null, source.readStatement());
source.close();
s = "/\n$ \n\n $';$$a$$ $\n;'";
source = new ScriptReader(new StringReader(s));
assertEquals("/\n$ \n\n $';$$a$$ $\n;'", source.readStatement());
assertEquals(null, source.readStatement());
source.close();
}