@Test
public void cloneDocumentAndObject() {

    int count = 100000;
    Object s = buildCloneOrSerializationObject();
    long start = System.nanoTime() / 1000;
    for (int i = 0; i < count; i++) {
        s = Utils.cloneObject(s);
        Object foo = s;
        foo = Utils.cloneObject(foo);
    }
    long end = System.nanoTime() / 1000;
    double thpt = end - start;
    thpt /= 1000000;
    thpt = count / thpt;
    Logger.getAnonymousLogger().info(
            String.format(
                    "Clones per second: %f, iterations: %d",
                    thpt, count));
}