@Test
public void testAtomicWrite() throws IOException {

	
	final File tempFile = File.createTempFile("test-file", UUID.randomUUID().toString());
	tempFile.deleteOnExit();
	for (int i = 0; i < 10; i++) {
		final String str = new String("hello-" + i);
		
		long start = System.nanoTime();
		AtomicFileOperations.atomicWriteString(tempFile, str);
		long end = System.nanoTime();
		System.out.println("Atomically wrote file in: " + (end - start) + " ns");
		System.out.println("Wrote to: " + tempFile.getAbsolutePath());
		
		//String readString = (String) AtomicFileOperations.readObject(tempFile);
		//Assert.assertEquals(str, readString);
	}
	
	tempFile.delete();
}