assertEquals(RestNamespace.NAME, namespace.getName());
assertEquals(desc, namespace.getDescription());
}
public void testCreateInstance() {
RestNamespace namespace = new RestNamespace(RestNamespace.NAME, null);
Object[] parameters;
try {
String url = "http://www.twitter.com";
parameters = new Object[] {new URL(url)};
ID id = namespace.createInstance(parameters);
assertEquals(url, id.getName());
} catch (MalformedURLException e) {
fail();
}
}