@Test
public void shouldIncludeCustomOptionsWithPropertyDescriptors() throws Exception {

    final String customName = "blah";
    this.parameter.setStatementOption( getTransaction(), customName, "elvis" );
    final PropertyDescriptor[] propDescriptors = this.parameter.getPropertyDescriptors( getTransaction() );
    boolean found = false;
    for ( final PropertyDescriptor descriptor : propDescriptors ) {
        if ( customName.equals( descriptor.getName() ) ) {
            found = true;
            break;
        }
    }
    if ( !found ) {
        fail( "Custom option '" + customName + "'was not included in the property descriptors" );
    }
}