@Test public void testSoakTestWithRandomData() throws IOException, InterruptedException { // for (int i = 30; i < 50; i++) { System.out.print("SoakTesting "); int max = 1000000; for (int j = 1; j < max; j++) { if (j % 100 == 0) System.out.print("."); Random rnd = new Random(System.currentTimeMillis()); final ChronicleMap<Integer, CharSequence> map = rnd.nextBoolean() ? map1 : map2; if (rnd.nextBoolean()) { map.put((int) rnd.nextInt(100), "test" + j); } else { map.remove((int) rnd.nextInt(100)); } } System.out.println("\nwaiting till equal"); waitTillUnchanged(1000); System.out.println("time t=" + t); Assert.assertEquals(new TreeMap(map1), new TreeMap(map2)); }