static void stest(Map s, int size) throws Exception {
    if (!(s instanceof Serializable)) {
      return;
    }
    System.out.print("Serialize              : ");

    for (int i = 0; i < size; i++) {
      s.put(i, 1);
    }

    long startTime = System.nanoTime();

    FileOutputStream fs = new FileOutputStream("IntMapCheck.dat");
    ObjectOutputStream out = new ObjectOutputStream(new BufferedOutputStream(fs));
    out.writeObject(s);
    out.close();

    FileInputStream is = new FileInputStream("IntMapCheck.dat");
    ObjectInputStream in = new ObjectInputStream(new BufferedInputStream(is));
    Map m = (Map) in.readObject();

    long endTime = System.nanoTime();
    long time = endTime - startTime;

    System.out.print(time + "ms");

    if (s instanceof IdentityHashMap) {
      return;
    }
    reallyAssert(s.equals(m));
  }
@test
@synopsis Times and checks basic map operations
geode-core/src/integrationTest/java/org/apache/geode/internal/util/concurrent/cm/IntMapCheckJUnitTest.java