public virtual void TestApplicationReport() { long timestamp = Runtime.CurrentTimeMillis(); ApplicationReport appReport1 = CreateApplicationReport(1, 1, timestamp); ApplicationReport appReport2 = CreateApplicationReport(1, 1, timestamp); ApplicationReport appReport3 = CreateApplicationReport(1, 1, timestamp); NUnit.Framework.Assert.AreEqual(appReport1, appReport2); NUnit.Framework.Assert.AreEqual(appReport2, appReport3); appReport1.SetApplicationId(null); NUnit.Framework.Assert.IsNull(appReport1.GetApplicationId()); NUnit.Framework.Assert.AreNotSame(appReport1, appReport2); appReport2.SetCurrentApplicationAttemptId(null); NUnit.Framework.Assert.IsNull(appReport2.GetCurrentApplicationAttemptId()); NUnit.Framework.Assert.AreNotSame(appReport2, appReport3); NUnit.Framework.Assert.IsNull(appReport1.GetAMRMToken()); }