@Test
public void testRenameFile() throws IOException {

  File tempFile = File.createTempFile("testRenameFile-", "-suffix");
  tempFile.deleteOnExit();
  boolean result = Utils.renameFile(tempFile.getAbsolutePath(),
          tempFile.getAbsolutePath() + "bak");
  assertTrue(Files.exists(Paths.get(tempFile.getAbsolutePath() + "bak")));
  assertTrue(result);
  Files.deleteIfExists(Paths.get(tempFile.getAbsolutePath() + "bak"));
}