refactored MessagingEndpoint to interface MessagingEndpoint and
implementation JMSMessagingEndpoint, to allow mock implementation of the
interface