fail("Undesired exception.");
log.error("Caught: " + ex, ex); fail("Undesired exception: " + ex);
	public void testOutboundWithCommit() throws Exception {		//Send the message in a JTA transaction		DefaultTransactionDefinition definition=new DefaultTransactionDefinition();		definition.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);		TransactionStatus status=null;		try {			status=transactionManager.getTransaction(definition);			JmsTemplate template=new JmsTemplate(getConnectionFactory());			template.convertAndSend(queue,TEST_MESSAGE);			transactionManager.commit(status);		} catch(Exception ex) {			ex.printStackTrace();			transactionManager.rollback(status);			fail("Undesired exception.");		}		//Check if the message has been sent		checkIfMessageExist(TEST_MESSAGE);	}