diff --git a/src/test/java/benchmark/Synchronized_Versus_ReentrantLock.java b/src/test/java/benchmark/Synchronized_Versus_ReentrantLock.java
index <HASH>..<HASH> 100644
--- a/src/test/java/benchmark/Synchronized_Versus_ReentrantLock.java
+++ b/src/test/java/benchmark/Synchronized_Versus_ReentrantLock.java
@@ -2,7 +2,6 @@ package benchmark;
 
 
 import com.carrotsearch.junitbenchmarks.AbstractBenchmark;
-import com.sun.servicetag.SystemEnvironment;
 import org.junit.Test;
 import org.mapdb.CC;
 
diff --git a/src/test/java/org/mapdb/Gen.java b/src/test/java/org/mapdb/Gen.java
index <HASH>..<HASH> 100644
--- a/src/test/java/org/mapdb/Gen.java
+++ b/src/test/java/org/mapdb/Gen.java
@@ -61,7 +61,7 @@ public class Gen<T> implements TestRule {
                 try {
                     test.evaluate();
                 } catch (Throwable t) {
-                    errorCollector.addError(new AssertionError("For value: "
+                    errorCollector.addError(new Error("For value: "
                             + v, t));
                 }
             }
Make it compilable on JDK6