SimpleShell { public void touch(final String[] cmd) throws Exception { if (cmd.length < 2) { throw new Exception("USAGE: touch <path>"); } final FileObject file = mgr.resolveFile(cwd, cmd[1]); if (!file.exists()) { file.createFile(); } file.getContent().setLastModifiedTime(System.currentTimeMillis()); } SimpleShell();  SimpleShell(String accnt, String key, String cont); static void main(final String[] args); void go(); void help(); void rm(final String[] cmd); void cp(String[] cmd); void cat(String[] cmd); void pwd(); void cd(final String[] cmd); void ls(final String[] cmd); void touch(final String[] cmd); void listChildren(final FileObject dir,
                              final boolean recursive,
                              final String prefix);  }
@Test public void testTouch() throws Exception { String currAccountStr = testProperties.getProperty("azure.account.name"); String currKey = testProperties.getProperty("azure.account.key"); String currContainerStr = testProperties.getProperty("azure.test0001.container.name"); String currFileNameStr = "file05"; String currUriStr = String.format("%s: AzConstants.AZSBSCHEME, currAccountStr, currContainerStr, currFileNameStr); String[] cmd = new String[2]; SimpleShell instance = new SimpleShell(currAccountStr, currKey, currContainerStr); cmd[0] = "touch"; cmd[1] = currUriStr; instance.touch(cmd); }