@Test
public void testGenerateNodeTableMapping() throws Exception {

  Set<NodeDetails> nodes = SLSUtils.generateNodes(3, 3);
  File tempFile = File.createTempFile("testslsutils", ".tmp");
  tempFile.deleteOnExit();
  String fileName = tempFile.getAbsolutePath();
  SLSUtils.generateNodeTableMapping(nodes, fileName);
  List<String> lines = Files.readAllLines(Paths.get(fileName));
  Assert.assertEquals(3, lines.size());
  for (String line : lines) {
    Assert.assertTrue(line.contains("node"));
    Assert.assertTrue(line.contains("/rack"));
  }
}