assertEquals(RpcNamespace.NAME, namespace.getName());
assertEquals(desc, namespace.getDescription());
}
public void testCreateInstance() {
RpcNamespace namespace = new RpcNamespace(RpcNamespace.NAME, null);
Object[] parameters;
try {
String url = RpcConstants.TEST_ECHO_TARGET;
parameters = new Object[] {new URL(url)};
ID id = namespace.createInstance(parameters);
assertEquals(url, id.getName());
} catch (MalformedURLException e) {
fail();
}
}