private void setOptions( JMSProducer producer ) {
    String optionValue = meta.getDisableMessageId();
    getLogChannel().logDebug( "Disable Message ID is set to " + optionValue );
    if ( !StringUtil.isEmpty( optionValue ) ) {
      producer.setDisableMessageID( BooleanUtils.toBoolean( optionValue ) );
    }

    optionValue = meta.getDisableMessageTimestamp();
    getLogChannel().logDebug( "Disable Message Timestamp is set to " + optionValue );
    if ( !StringUtil.isEmpty( optionValue ) ) {
      producer.setDisableMessageTimestamp( BooleanUtils.toBoolean( optionValue ) );
    }

    optionValue = meta.getDeliveryMode();
    getLogChannel().logDebug( "Delivery Mode is set to " + optionValue );
    if ( !StringUtil.isEmpty( optionValue ) ) {
      producer.setDeliveryMode( Integer.parseInt( optionValue ) );
    }

    optionValue = meta.getPriority();
    getLogChannel().logDebug( "Priority is set to " + optionValue );
    if ( !StringUtil.isEmpty( optionValue ) ) {
      producer.setPriority( Integer.parseInt( optionValue ) );
    }

    optionValue = meta.getTimeToLive();
    getLogChannel().logDebug( "Time to Live is set to " + optionValue );
    if ( !StringUtil.isEmpty( optionValue ) ) {
      producer.setTimeToLive( Long.parseLong( optionValue ) );
    }

    optionValue = meta.getDeliveryDelay();
    getLogChannel().logDebug( "Delivery Delay is set to " + optionValue );
    if ( !StringUtil.isEmpty( optionValue ) ) {
      producer.setDeliveryDelay( Long.parseLong( optionValue ) );
    }

    optionValue = meta.getJmsCorrelationId();
    getLogChannel().logDebug( "JMS Correlation ID is set to " + optionValue );
    if ( !StringUtil.isEmpty( optionValue ) ) {
      producer.setJMSCorrelationID( optionValue );
    }

    optionValue = meta.getJmsType();
    getLogChannel().logDebug( "JMS Type is set to " + optionValue );
    if ( !StringUtil.isEmpty( optionValue ) ) {
      producer.setJMSType( optionValue );
    }
  }
@Test
  public void testSetOptions() throws KettleException {
    step.init( meta, data );

    //Defaults
    step.processRow( meta, data );

    assertEquals( false, step.producer.getDisableMessageID() );
    assertEquals( false, step.producer.getDisableMessageTimestamp() );
    assertEquals( 2, step.producer.getDeliveryMode() );
    assertEquals( 4, step.producer.getPriority() );
    assertEquals( 0, step.producer.getTimeToLive() );
    assertEquals( 0, step.producer.getDeliveryDelay() );
    assertNull( step.producer.getJMSCorrelationID() );
    assertNull( step.producer.getJMSType() );
  }