{
public void testPropertyNames()
{
try
{
JMSTextMessage text = TestMessageHelper.newJMSTextMessage();
text.setBooleanProperty("Boolean1", true);
text.setBooleanProperty("Boolean2", true);
text.setIntProperty("Int", 2);
text.setLongProperty("Long", 2);
Enumeration e = text.getPropertyNames();
assertEquals("Boolean1", e.nextElement());
assertTrue("Boolean2".equals(e.nextElement()));
assertTrue("Int".equals(e.nextElement()));
assertTrue("Long".equals(e.nextElement()));