}
public void testGetLinkName_NamingException() throws NamingException {
String name = "www.apache.org/index.html";
LinkRef linkRef = new LinkRef(name);
linkRef.clear();
try {
linkRef.getLinkName();
fail("It should throw a MalformedLinkException");
} catch (MalformedLinkException e1) {
}