### Question:
StandardDdlParser implements DdlParser, DdlConstants, DdlConstants.StatementStartPhrases { protected boolean areNextTokensCreateTableOptions( DdlTokenStream tokens ) throws ParsingException { assert tokens != null; boolean result = false; if (tokens.matches("ON", "COMMIT")) { result = true; } return result; } StandardDdlParser(); DataTypeParser getDatatypeParser(); void setDatatypeParser( DataTypeParser datatypeParser ); AstNodeFactory nodeFactory(); AstNode getRootNode(); void setRootNode( AstNode rootNode ); Object score( String ddl,
                         String fileName,
                         DdlParserScorer scorer ); String[] getIdentifyingKeywords(); void parse( String ddl,
                       AstNode rootNode,
                       Object scoreReturnObject ); final void addProblem( DdlParserProblem problem,
                                  AstNode node ); final void addProblem( DdlParserProblem problem ); final List<DdlParserProblem> getProblems(); final void attachNewProblem( DdlParserProblem problem,
                                        AstNode parentNode ); void mergeNodes( DdlTokenStream tokens,
                            AstNode firstNode,
                            AstNode secondNode ); AstNode handleUnknownToken( DdlTokenStream tokens,
                                       String tokenValue ); final AstNode unknownTerminatedNode( AstNode parentNode ); final AstNode missingTerminatorNode( AstNode parentNode ); final boolean isMissingTerminatorNode( AstNode node ); final boolean isValidSchemaChild( AstNode node ); final boolean setAsSchemaChildNode( AstNode statementNode,
                                               boolean stmtIsMissingTerminator ); boolean doUseTerminator(); void setDoUseTerminator( boolean useTerminator ); String getStatementTypeName( String[] stmtPhrase ); final Position getCurrentMarkedPosition(); final void markStartOfStatement( DdlTokenStream tokens ); final void markEndOfStatement( DdlTokenStream tokens,
                                          AstNode statementNode ); boolean isTestMode(); void setTestMode( boolean testMode ); String getId(); @Override int hashCode(); @Override boolean equals( Object obj );  }### Answer:
@Test public void shouldAreNextTokensCreateTableOptions() { printTest("shouldAreNextTokensCreateTableOptions()"); String content = "ON COMMIT PRESERVE ROWS"; DdlTokenStream tokens = getTokens(content); assertTrue(parser.areNextTokensCreateTableOptions(tokens)); content = "OFF COMMIT PRESERVE ROWS"; tokens = getTokens(content); assertFalse(parser.areNextTokensCreateTableOptions(tokens)); }