@Test
public void testPurgeJmsQueuesActionParser() {
assertActionCount(3);
assertActionClassAndName(PurgeJmsQueuesAction.class, "purge-queue");
PurgeJmsQueuesAction action = getNextTestActionFromTest();
Assert.assertNotNull(action.getReceiveTimeout());
Assert.assertNotNull(action.getConnectionFactory());
Assert.assertEquals(action.getQueues().size(), 0);
Assert.assertEquals(action.getQueueNames().size(), 3);
Assert.assertEquals(action.getQueueNames().get(0), "JMS.Queue.1");
Assert.assertEquals(action.getQueueNames().get(1), "JMS.Queue.2");
Assert.assertEquals(action.getQueueNames().get(2), "JMS.Queue.3");
action = getNextTestActionFromTest();
Assert.assertNotNull(action.getReceiveTimeout());
Assert.assertEquals(action.getReceiveTimeout(), 125);
Assert.assertNotNull(action.getConnectionFactory());
Assert.assertEquals(action.getQueues().size(), 0);
Assert.assertEquals(action.getQueueNames().size(), 3);
Assert.assertEquals(action.getQueueNames().get(0), "JMS.Queue.1");
Assert.assertEquals(action.getQueueNames().get(1), "JMS.Queue.2");
Assert.assertEquals(action.getQueueNames().get(2), "JMS.Queue.3");
action = getNextTestActionFromTest();
Assert.assertEquals(action.getQueues().size(), 1);
Assert.assertEquals(action.getQueueNames().size(), 1);
Assert.assertEquals(action.getQueueNames().get(0), "JMS.Queue.1");
}