@Test public void writeContextWithoutUsingObjectMethods() throws Exception { backend.put("random", "entry"); unit.send(message); verify(message, never()).setObjectProperty(anyString(), any()); }
@Override public void send(Message message) throws JMSException { writeTraceeContextToMessage(message); delegate.send(message); }
TraceeMessageProducer implements MessageProducer { @Override public void send(Message message) throws JMSException { writeTraceeContextToMessage(message); delegate.send(message); } }
TraceeMessageProducer implements MessageProducer { @Override public void send(Message message) throws JMSException { writeTraceeContextToMessage(message); delegate.send(message); } TraceeMessageProducer(MessageProducer delegate, TraceeBackend backend);  TraceeMessageProducer(MessageProducer delegate); }
TraceeMessageProducer implements MessageProducer { @Override public void send(Message message) throws JMSException { writeTraceeContextToMessage(message); delegate.send(message); } TraceeMessageProducer(MessageProducer delegate, TraceeBackend backend);  TraceeMessageProducer(MessageProducer delegate); @Override void send(Message message); @Override void send(Message message, int deliveryMode, int priority, long timeToLive); @Override void send(Destination destination, Message message); @Override void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive); @Override void setDisableMessageID(boolean value); @Override boolean getDisableMessageID(); @Override void setDisableMessageTimestamp(boolean value); @Override boolean getDisableMessageTimestamp(); @Override void setDeliveryMode(int deliveryMode); @Override int getDeliveryMode(); @Override void setPriority(int defaultPriority); @Override int getPriority(); @Override void setTimeToLive(long timeToLive); @Override long getTimeToLive(); @Override Destination getDestination(); @Override void close(); }
TraceeMessageProducer implements MessageProducer { @Override public void send(Message message) throws JMSException { writeTraceeContextToMessage(message); delegate.send(message); } TraceeMessageProducer(MessageProducer delegate, TraceeBackend backend);  TraceeMessageProducer(MessageProducer delegate); @Override void send(Message message); @Override void send(Message message, int deliveryMode, int priority, long timeToLive); @Override void send(Destination destination, Message message); @Override void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive); @Override void setDisableMessageID(boolean value); @Override boolean getDisableMessageID(); @Override void setDisableMessageTimestamp(boolean value); @Override boolean getDisableMessageTimestamp(); @Override void setDeliveryMode(int deliveryMode); @Override int getDeliveryMode(); @Override void setPriority(int defaultPriority); @Override int getPriority(); @Override void setTimeToLive(long timeToLive); @Override long getTimeToLive(); @Override Destination getDestination(); @Override void close();  }