public void processCorrelationId(Message src, AdaptrisMessage dest) throws JMSException {
   if (isEmpty(getMetadataKey())) {
     log.warn("Metadata key for correlation ID not configured");
   } else {
     String id = src.getJMSCorrelationID();
     if (isEmpty(id)) {
       log.warn("No Correlation Id available");
     } else {
       dest.addMetadata(getMetadataKey(), id);
       log.debug("Set metadata key [" + getMetadataKey() + "] to [" + id + "]");
     }
   }
 }
 public void testDoServiceWithLineCountSplitter() throws Exception {
   msg.addMetadata("key", "value");
   execute(service, msg);
   assertEquals("Number of messages", 10, producer.getMessages().size());
 }
  /**
   * Sets 'break-out' metadata for testing.
   *
   * @param msg the message to apply service to
   * @throws ServiceException wrapping any underlying <code>Exception</code>s
   */
  public void doService(AdaptrisMessage msg) throws ServiceException {

    msg.addMetadata(CoreConstants.STOP_PROCESSING_KEY, CoreConstants.STOP_PROCESSING_VALUE);
  }
 public void doService(AdaptrisMessage msg) throws ServiceException {
   msg.addMetadata(
       getComparator().compare(msg.getMetadata(getFirstKey()), msg.getMetadata(getSecondKey())));
 }