@SuppressWarnings("rawtypes")
@Test
public void testConcat() {

	String inputCommand = ListCommand.LIST_CONCAT_SUB_COMMAND_NAME + "\n" + target + "\n" + target2 + "\ne\n";
	try {
		// concat l + l2
		command.execute("l", new BufferedReader(new StringReader(inputCommand)), writer);
		assertEquals("!ylo2\n", sWriter.toString());
		List newList = (List) gateway.getObject("o2");
		assertEquals(7, newList.size());
		assertEquals(4, list.size());
		assertEquals(3, list2.size());
		assertEquals(newList.get(4), list2.get(0));
		// concat l + l
		inputCommand = ListCommand.LIST_CONCAT_SUB_COMMAND_NAME + "\n" + target + "\n" + target + "\ne\n";
		command.execute("l", new BufferedReader(new StringReader(inputCommand)), writer);
		assertEquals("!ylo2\n!ylo3\n", sWriter.toString());
		newList = (List) gateway.getObject("o3");
		assertEquals(8, newList.size());
	} catch (Exception e) {
		e.printStackTrace();
		fail();
	}
}