@Test
public void testGenerateNodes() {

  Set<NodeDetails> nodes = SLSUtils.generateNodes(3, 3);
  Assert.assertEquals("Number of nodes is wrong.", 3, nodes.size());
  Assert.assertEquals("Number of racks is wrong.", 3, getNumRack(nodes));
  nodes = SLSUtils.generateNodes(3, 1);
  Assert.assertEquals("Number of nodes is wrong.", 3, nodes.size());
  Assert.assertEquals("Number of racks is wrong.", 1, getNumRack(nodes));
  nodes = SLSUtils.generateNodes(3, 4);
  Assert.assertEquals("Number of nodes is wrong.", 3, nodes.size());
  Assert.assertEquals("Number of racks is wrong.", 3, getNumRack(nodes));
  nodes = SLSUtils.generateNodes(3, 0);
  Assert.assertEquals("Number of nodes is wrong.", 3, nodes.size());
  Assert.assertEquals("Number of racks is wrong.", 1, getNumRack(nodes));
}