public void testSetGet ()
{
try
{
SFTPEpr ftp = new SFTPEpr(new URI("sftp://foo.com"));
assertEquals(ftp.getURI().toString(), "sftp://foo.com");
assertEquals(ftp.getURI().getHost(), "foo.com");
assertEquals(ftp.getURI().getScheme(), "sftp");
ftp.setPassword("foobar");
assertEquals(ftp.getPassword(), "foobar");
ftp.setUserName("barfoo");
assertEquals(ftp.getUserName(), "barfoo");
}
catch (Exception ex)
{
fail(ex.toString());
}