### Question:
StatementSplitter { public static boolean isEmptyStatement(String sql) { TokenSource tokens = getLexer(sql, ImmutableSet.of()); while (true) { Token token = tokens.nextToken(); if (token.getType() == Token.EOF) { return true; } if (token.getChannel() != Token.HIDDEN_CHANNEL) { return false; } } } StatementSplitter(String sql);  StatementSplitter(String sql, Set<String> delimiters); List<Statement> getCompleteStatements(); String getPartialStatement(); static String squeezeStatement(String sql); static boolean isEmptyStatement(String sql); static TokenSource getLexer(String sql, Set<String> terminators);  }### Answer:
@Test public void testIsEmptyStatement() { assertTrue(isEmptyStatement("")); assertTrue(isEmptyStatement(" ")); assertTrue(isEmptyStatement("\t\n ")); assertTrue(isEmptyStatement("--foo\n --what")); assertTrue(isEmptyStatement("")); assertFalse(isEmptyStatement("x")); assertFalse(isEmptyStatement("select")); assertFalse(isEmptyStatement("123")); assertFalse(isEmptyStatement("z#oops")); }