### Question:
Sftp3gppUrlConnection extends SftpUrlConnection { @Override protected String getPath() throws SftpUrlException { File f = new File(url.getPath(), get3gppFileName()); String path = f.getAbsolutePath(); log().debug("getPath: retrieving data 3GPP (NE Mode) using " + path); return path; } protected  Sftp3gppUrlConnection(URL url); String get3gppFileName(); long getTimeStampFromFile(String fileName); Map<String,String> getQueryMap(); @SuppressWarnings("unchecked") List<String> getFileList(); void deleteFile(String fileName); InputStream getFile(String fileName);  }### Answer:
@Test public void testPathFor3GPPA() throws Exception { URL url = UrlFactory.getUrl("sftp.3gpp: URLConnection conn = url.openConnection(); Assert.assertTrue(conn instanceof Sftp3gppUrlConnection); String path = ((Sftp3gppUrlConnection) conn).getPath(); log().debug(path); UrlFactory.disconnect(conn); }
@Test public void testCustomPathFor3GPPA() throws Exception { long ts = 1320257100000l; Date date = new Date(ts); log().debug("Timestamp = " + date); URL url = UrlFactory.getUrl("sftp.3gpp: URLConnection conn = url.openConnection(); Assert.assertTrue(conn instanceof Sftp3gppUrlConnection); String path = ((Sftp3gppUrlConnection) conn).getPath(); log().debug(path); UrlFactory.disconnect(conn); Assert.assertEquals("/opt/3gpp/A20111102.1300-0500-1305-0500_MME00001", path); }