@Test //(timeout = 500)
public void testBounds() throws Exception {

    assumeTrue(!GraphicsEnvironment.isHeadless());
    // Create H2 DataSource
    org.h2.Driver driver = org.h2.Driver.load();
    OsgiDataSourceFactory dataSourceFactory = new OsgiDataSourceFactory(driver);
    Properties properties = new Properties();
    properties.setProperty(OsgiDataSourceFactory.JDBC_URL, RSyntaxSQLParserTest.DATABASE_PATH);
    // Create document
    RSyntaxDocument document = new RSyntaxDocument("sql");
    RSyntaxTextArea rSyntaxTextArea = new RSyntaxTextArea(document);
    rSyntaxTextArea.setText("alte");
    rSyntaxTextArea.setSize(new Dimension(420, 240));
    rSyntaxTextArea.setCaretPosition(4);
    SQLCompletionProvider autoComplete = new SQLCompletionProvider(dataSourceFactory.createDataSource(properties), true);
    List completions = autoComplete.getCompletionsAtIndex(rSyntaxTextArea, 4);
    assertEquals(1, completions.size());
    assertEquals("ALTER", ((Completion)completions.get(0)).getReplacementText());
}