@Test
public void shouldSetStandardOptionAsIfProperty() throws Exception {

    final String option = this.procedure.getStandardOptions().keySet().iterator().next();
    this.procedure.setStatementOption( getTransaction(), option, "initialValue" );
    final String value = "newValue";
    this.procedure.setProperty( getTransaction(), option, value );
    assertThat( this.procedure.hasProperty( getTransaction(), option ), is( true ) );
    assertThat( this.procedure.getProperty( getTransaction(), option ), is( instanceOf( StatementOption.class ) ) );
    assertThat( this.procedure.isCustomOption( getTransaction(), option ), is( false ) );
    assertThat( this.procedure.getStatementOptions( getTransaction() ).length, is( 1 ) );
    final StatementOption statementOption = this.procedure.getStatementOptions( getTransaction() )[0];
    assertThat( statementOption.getName( getTransaction() ), is( option ) );
    assertThat( statementOption.getValue( getTransaction() ), is( ( Object )value ) );
}