Improve test for AMQ-4717: verify that propertyExists also works.

This commit is contained in:
Hiram Chirino 2013-09-10 12:53:46 -04:00
parent 9c75fe7b61
commit fd67eefad6
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ public class SimpleSecurityBrokerSystemTest extends SecurityTestSupport {
// And also via JMS.
MessageConsumer consumer = session.createConsumer(destination);
Message m = consumer.receive(1000);
assertTrue(m.propertyExists("JMSXUserID"));
assertEquals("system", m.getStringProperty("JMSXUserID"));
}