NumaResourceAllocator { @VisibleForTesting Collection<NumaNodeResource> getNumaNodesList() { return numaNodesList; } NumaResourceAllocator(Context context); void init(Configuration conf); synchronized NumaResourceAllocation allocateNumaNodes(
      Container container); synchronized void releaseNumaResource(ContainerId containerId); synchronized void recoverNumaResource(ContainerId containerId);  }
@Test public void testReadNumaTopologyFromConfigurations() throws Exception { Collection<NumaNodeResource> nodesList = numaResourceAllocator .getNumaNodesList(); Collection<NumaNodeResource> expectedNodesList = getExpectedNumaNodesList(); Assert.assertEquals(expectedNodesList, nodesList); }