@@ -0,0 +1,1411 @@
+package com.speedment.internal.util.testing;%0A%0A/**%0A *%0A * @author Per Minborg%0A */%0Apublic class MemorySnapshot %7B%0A%0A    private final long free, total, max;%0A%0A    private MemorySnapshot() %7B%0A        System.gc();%0A        System.gc();%0A        final Runtime rt = Runtime.getRuntime();%0A        this.free = rt.freeMemory();%0A        this.total = rt.totalMemory();%0A        this.max = rt.maxMemory();%0A    %7D%0A%0A    protected MemorySnapshot(long free, long total, long max) %7B%0A        this.free = free;%0A        this.total = total;%0A        this.max = max;%0A    %7D%0A%0A    public long free() %7B%0A        return free;%0A    %7D%0A%0A    public long total() %7B%0A        return total;%0A    %7D%0A%0A    public long max() %7B%0A        return max;%0A    %7D%0A%0A    public long used() %7B%0A        return total() - free();%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return getClass().getSimpleName()%0A                + %22%7Bfree=%22 + free()%0A                + %22, total=%22 + total()%0A                + %22, max=%22 + max()%0A                + %22, used=%22 + used()%0A                + %22%7D%22;%0A    %7D%0A%0A    %0A    public MemorySnapshot deltaSinceCreated() %7B%0A        return substract(new MemorySnapshot());%0A    %7D%0A    %0A    public static MemorySnapshot create() %7B%0A        return new MemorySnapshot();%0A    %7D%0A%0A    public MemorySnapshot substract(MemorySnapshot operand) %7B%0A        return new MemorySnapshot(free() - operand.free(), total() - operand.total(), max() - operand.max());%0A    %7D%0A%0A%7D%0A

Add MemorySnapshot test util