public void testParseWithTwoParams() throws Exception {
TestBean bean = new TestBean();
CmdLineParser parser = new CmdLineParser(bean);
parser.parseArgument("test1", "test2", "-opt", "test3", "-opt", "test4");
Assert.assertEquals(Arrays.asList("test3", "test4"), Arrays.asList(bean.stringArray));
Assert.assertEquals(Arrays.asList("test1", "test2"), Arrays.asList(bean.rest));
}