@Test
public void testPurgeMessageChannelActionParser() {
assertActionCount(3);
assertActionClassAndName(PurgeMessageChannelAction.class, "purge-channel");
PurgeMessageChannelAction action = getNextTestActionFromTest();
Assert.assertNotNull(action.getMessageSelector());
Assert.assertEquals(action.getChannels().size(), 0);
Assert.assertEquals(action.getChannelNames().size(), 3);
Assert.assertEquals(action.getChannelNames().get(0), "testChannel1");
Assert.assertEquals(action.getChannelNames().get(1), "testChannel2");
Assert.assertEquals(action.getChannelNames().get(2), "testChannel3");
action = getNextTestActionFromTest();
Assert.assertNotNull(action.getMessageSelector());
Assert.assertEquals(action.getChannels().size(), 1);
Assert.assertEquals(action.getChannelNames().size(), 3);
Assert.assertEquals(action.getChannelNames().get(0), "testChannel1");
Assert.assertEquals(action.getChannelNames().get(1), "testChannel2");
Assert.assertEquals(action.getChannelNames().get(2), "testChannel3");
action = getNextTestActionFromTest();
Assert.assertEquals(action.getMessageSelector(), beanDefinitionContext.getBean("testMessageSelector"));
Assert.assertEquals(action.getChannels().size(), 1);
Assert.assertEquals(action.getChannelNames().size(), 1);
Assert.assertEquals(action.getChannelNames().get(0), "testChannel1");
}