private void CheckQueueMetrics(QueueMetrics metrics, int activeApps, int runningApps
                                , int allocMb, int allocVcores, int reservedMb, int reservedVcores, int pendingMb
                                , int pendingVcores)
 {
     NUnit.Framework.Assert.AreEqual(activeApps, metrics.GetActiveApps());
     NUnit.Framework.Assert.AreEqual(runningApps, metrics.GetAppsRunning());
     NUnit.Framework.Assert.AreEqual(allocMb, metrics.GetAllocatedMB());
     NUnit.Framework.Assert.AreEqual(allocVcores, metrics.GetAllocatedVirtualCores());
     NUnit.Framework.Assert.AreEqual(reservedMb, metrics.GetReservedMB());
     NUnit.Framework.Assert.AreEqual(reservedVcores, metrics.GetReservedVirtualCores()
                                     );
     NUnit.Framework.Assert.AreEqual(pendingMb, metrics.GetPendingMB());
     NUnit.Framework.Assert.AreEqual(pendingVcores, metrics.GetPendingVirtualCores());
 }