public void testSetGet ()
{
try
{
String url1 = "http://www.local.bar:8080";
HTTPEpr epr = new HTTPEpr(url1);
assertEquals(epr.getURL().toString(), url1);
String url2 = "http://foo.com";
epr.setURL(new URL(url2));
assertEquals(epr.getURL().toString(), url2);
String uri = "http://foo.com";
epr.setURI(new URI(uri));
assertEquals(epr.getURI().toString(), uri);
}
catch (Exception ex)
{
fail(ex.toString());
}