import junit.framework.TestCase;
public class MalformedLinkExceptionTest extends TestCase {
public void testSetLinkResolvedName() throws InvalidNameException {
MalformedLinkException ex = new MalformedLinkException("Test");
Properties env = new Properties();
env.put("jndi.syntax.direction", "flat");
Name name = new CompoundName("Test", env);
ex.setLinkResolvedName(name);
ex.setLinkResolvedName(null);
assertNull(ex.getLinkResolvedName());
}