@Test
public void testJavaActionParser() {
assertActionCount(3);
assertActionClassAndName(JavaAction.class, "java");
JavaAction action = getNextTestActionFromTest();
Assert.assertEquals(action.getClassName(), "com.consol.citrus.util.InvocationDummy");
Assert.assertEquals(action.getMethodName(), "invoke");
Assert.assertEquals(action.getConstructorArgs().size(), 1);
Assert.assertEquals(action.getConstructorArgs().get(0), "Test Invocation");
Assert.assertEquals(action.getMethodArgs().size(), 1);
Assert.assertEquals(action.getMethodArgs().get(0), new String[] {"1", "2"});
action = getNextTestActionFromTest();
Assert.assertEquals(action.getClassName(), "com.consol.citrus.util.InvocationDummy");
Assert.assertEquals(action.getMethodName(), "invoke");
Assert.assertEquals(action.getConstructorArgs().size(), 0);
Assert.assertEquals(action.getMethodArgs().size(), 3);
Assert.assertEquals(action.getMethodArgs().get(0), 4);
Assert.assertEquals(action.getMethodArgs().get(1), "Test");
Assert.assertEquals(action.getMethodArgs().get(2), true);
action = getNextTestActionFromTest();
Assert.assertNull(action.getClassName());
Assert.assertNotNull(action.getInstance());
Assert.assertEquals(action.getInstance().getClass(), InvocationDummy.class);
Assert.assertEquals(action.getMethodName(), "invoke");
Assert.assertEquals(action.getConstructorArgs().size(), 0);
Assert.assertEquals(action.getMethodArgs().get(0), 0);
Assert.assertEquals(action.getMethodArgs().get(1), "Test invocation");
Assert.assertEquals(action.getMethodArgs().get(2), false);
}