/// <exception cref="System.Exception"/>
        public virtual void TestPostExecuteAfterReacquisition()
        {
            // make up some bogus container ID
            ApplicationId        appId     = ApplicationId.NewInstance(12345, 67890);
            ApplicationAttemptId attemptId = ApplicationAttemptId.NewInstance(appId, 54321);
            ContainerId          cid       = ContainerId.NewContainerId(attemptId, 9876);
            Configuration        conf      = new YarnConfiguration();

            conf.SetClass(YarnConfiguration.NmLinuxContainerResourcesHandler, typeof(TestLinuxContainerExecutor.TestResourceHandler
                                                                                     ), typeof(LCEResourcesHandler));
            LinuxContainerExecutor lce = new LinuxContainerExecutor();

            lce.SetConf(conf);
            try
            {
                lce.Init();
            }
            catch (IOException)
            {
            }
            // expected if LCE isn't setup right, but not necessary for this test
            lce.ReacquireContainer("foouser", cid);
            NUnit.Framework.Assert.IsTrue("postExec not called after reacquisition", TestLinuxContainerExecutor.TestResourceHandler
                                          .postExecContainers.Contains(cid));
        }
 public virtual void TestInit()
 {
     mockExec.Init();
     NUnit.Framework.Assert.AreEqual(Arrays.AsList("--checksetup"), ReadMockParams());
 }