@@ -0,0 +1,771 @@
+package a2;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class CommandTest %7B%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09Command cmd= new Command();%0A%09%7D%0A%0A%09@Test%0A%09public void testMkdir() %7B%0A%09%09Directory root = new Directory(%22/%22, null);%0A%09%09Item current = (Item)root;%0A%09%09Command cmd= new Command();%0A%09%09String%5B%5D input = new String%5B%5D%7B%22d1%22%7D;%0A%09%09cmd.mkdir(input, current);%0A%09%09Directory d1 = new Directory(%22d1%22, root);%0A%09%09assertEquals(root.getSubItem(%22d1%22), d1);%0A%09%7D%0A%09%0A%09@Test%0A%09public void testCd() %7B%0A%09%09Directory root = new Directory(%22/%22, null);%0A%09%09Directory d1 = new Directory(%22d1%22, root);%0A%09%09Item current = (Item)root;%0A%09%09Command cmd= new Command();%0A%09%09cmd.cd(%22d1%22, current, root);%0A%09%09assertEquals(cmd.cd(%22d1%22, current, root), d1);%0A%09%7D%0A%0A%7D%0A

Create CommandTest.java