@Test
public void shouldIncludeStandardOptionsWithPrimaryTypePropertyDescriptors() throws Exception {

    final Set< String > optionNames = this.function.getStandardOptions().keySet();
    final PropertyDescriptor[] propDescriptors = this.function.getPrimaryType( getTransaction() ).getPropertyDescriptors( getTransaction() );
    for ( final String optionName : optionNames ) {
        boolean found = false;
        for ( final PropertyDescriptor descriptor : propDescriptors ) {
            if ( optionName.equals( descriptor.getName() ) ) {
                found = true;
                break;
            }
        }
        if ( !found ) {
            fail( "Option '" + optionName + "'was not included in the primary type property descriptors" );
        }
    }
}