SchemaUpdater { protected boolean doesTableExist() throws SQLException { return isSuccessful("SELECT * FROM %TABLE%"); } protected  SchemaUpdater(Connection connection, String tableName, MapSerializer serializer);   }
@Test public void shouldDetectMissingTable() throws SQLException { Connection connection = createConnection(); try { SchemaUpdater updater = new SchemaUpdater(connection, "TOGGLZ", DefaultMapSerializer.multiline()); assertFalse(updater.doesTableExist()); } finally { DbUtils.closeQuietly(connection); } }