CypherExecutor { public Neo4jResponse executeQuery(Neo4jStatement query) throws SQLException { List<Neo4jStatement> queries = new ArrayList<>(); queries.add(query); return this.executeQueries(queries); } CypherExecutor(String host, Integer port, Boolean secure, Properties properties); Neo4jResponse executeQueries(List<Neo4jStatement> queries); Neo4jResponse executeQuery(Neo4jStatement query); void commit(); void rollback(); Boolean getAutoCommit(); void setAutoCommit(Boolean autoCommit); String getServerVersion(); void close(); Integer getOpenTransactionId();  }
@Test public void executeEmptyQueryShouldFail() throws Exception { expectedEx.expect(SQLException.class); executor.executeQuery(new Neo4jStatement("", null, null)); }