public virtual void TestCreateSymlink() { string target = "/testNamenodeRetryCache/testCreateSymlink/target"; // Two retried symlink calls succeed NewCall(); nnRpc.CreateSymlink(target, "/a/b", perm, true); nnRpc.CreateSymlink(target, "/a/b", perm, true); nnRpc.CreateSymlink(target, "/a/b", perm, true); // non-retried call fails NewCall(); try { // Second non-retry call should fail with an exception nnRpc.CreateSymlink(target, "/a/b", perm, true); NUnit.Framework.Assert.Fail("testCreateSymlink - expected exception is not thrown" ); } catch (IOException) { } }