@Test
public void testGetNodesForResourceName() throws Exception {

  addEight4x4Nodes();
  assertEquals("Incorrect number of nodes matching ANY",
      8, nodeTracker.getNodesByResourceName(ResourceRequest.ANY).size());
  assertEquals("Incorrect number of nodes matching rack",
      4, nodeTracker.getNodesByResourceName("rack0").size());
  assertEquals("Incorrect number of nodes matching node",
      1, nodeTracker.getNodesByResourceName("host0").size());
}