diff --git a/src/test/java/org/davidmoten/rx/jdbc/DatabaseTest.java b/src/test/java/org/davidmoten/rx/jdbc/DatabaseTest.java
index <HASH>..<HASH> 100644
--- a/src/test/java/org/davidmoten/rx/jdbc/DatabaseTest.java
+++ b/src/test/java/org/davidmoten/rx/jdbc/DatabaseTest.java
@@ -286,7 +286,7 @@ public class DatabaseTest {
 
     @Test
     public void testSelectSpecifyingHealthCheck() {
-        NonBlockingConnectionPool pool = Pools //
+        try (Database db = Database//
                 .nonBlocking() //
                 .connectionProvider(DatabaseCreator.connectionProvider()) //
                 .maxIdleTime(1, TimeUnit.MINUTES) //
@@ -294,9 +294,7 @@ public class DatabaseTest {
                 .checkoutRetryInterval(1, TimeUnit.SECONDS) //
                 .healthCheck(DatabaseType.H2) //
                 .maxPoolSize(3) //
-                .build();
-
-        try (Database db = Database.from(pool)) {
+                .build()) {
             db.select("select score from person where name=?") //
                     .parameters("FRED", "JOSEPH") //
                     .getAs(Integer.class) //
use new Database.nonBlocking builder in a test