import junit.framework.TestCase;
public class LinkLoopExceptionTest extends TestCase {
public void testSetLinkResolvedName() throws InvalidNameException {
LinkLoopException ex = new LinkLoopException("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());
}