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