@Test
	@SuppressWarnings("unused")
	public void testSynchronizeString()
	{
		final int ITERATIONS = 1000000;
		
		watch.start("Without synchronized... ");
		String j = "";
		for (int i = 0; i < ITERATIONS; i++) {
			j += i;
			if (i % 20 == 19) {
				j = "";
			}
		}
		watch.stop("%.6f seconds.\n");

		long x = watch.nanos();
		
		final Object lock = new Object();
		
		watch.start("With synchronized... ");
		String k = "";
		for (int i = 0; i < ITERATIONS; i++) {
			synchronized (lock) {
				k += i;
				if (i % 20 == 19) {
					k = "";
				}
			}
		}
		watch.stop("%.6f seconds.\n");
		
		long y = watch.nanos();
		
		double overhead = ((y - x) / (double)ITERATIONS);
		
		System.out.format("synchronized overhead: %.3f ns\n", overhead);
	}