// Path: src/main/java/com/btmatthews/maven/plugins/inmemdb/db/derby/DerbyDatabaseFactory.java
// public final class DerbyDatabaseFactory implements ServerFactory {
// 
//     /**
//      * Get the name of the server created by this server factory.
//      *
//      * @return Always returns {@code derby}.
//      */
//     @Override
//     public String getServerName() {
//         return "derby";
//     }
// 
//     /**
//      * Create the server instance.
//      *
//      * @return A {@link DerbyDatabase} instance.
//      */
//     @Override
//     public Server createServer() {
//         return new DerbyDatabase();
//     }
// }
// 
// Path: src/main/java/com/btmatthews/maven/plugins/inmemdb/db/h2/H2DatabaseFactory.java
// public final class H2DatabaseFactory implements ServerFactory {
// 
//     /**
//      * Get the name of the server created by this server factory.
//      *
//      * @return Always returns {@code h2}.
//      */
//     @Override
//     public String getServerName() {
//         return "h2";
//     }
// 
//     /**
//      * Create the server instance.
//      *
//      * @return A {@link H2Database} instance.
//      */
//     @Override
//     public Server createServer() {
//         return new H2Database();
//     }
// }
// 
// Path: src/main/java/com/btmatthews/maven/plugins/inmemdb/db/hsqldb/HSQLDBDatabaseFactory.java
// public final class HSQLDBDatabaseFactory implements ServerFactory {
// 
//     /**
//      * Get the name of the server created by this server factory.
//      *
//      * @return Always returns {@code hsqldb}.
//      */
//     @Override
//     public String getServerName() {
//         return "hsqldb";
//     }
// 
//     /**
//      * Create the server instance.
//      *
//      * @return A {@link HSQLDBDatabase} instance.
//      */
//     @Override
//     public Server createServer() {
//         return new HSQLDBDatabase();
//     }
// }


import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.MockitoAnnotations.initMocks;
import com.btmatthews.maven.plugins.inmemdb.db.derby.DerbyDatabaseFactory;
import com.btmatthews.maven.plugins.inmemdb.db.h2.H2DatabaseFactory;
import com.btmatthews.maven.plugins.inmemdb.db.hsqldb.HSQLDBDatabaseFactory;
import com.btmatthews.utils.monitor.Logger;
import com.btmatthews.utils.monitor.ServerFactory;
import com.btmatthews.utils.monitor.ServerFactoryLocator;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
    /**
     * Verify that the server factory locator returns a {@link DerbyDatabaseFactory} when
     * &quot;derby&quot; is passed as the database type.
     */
    @Test
    public void testDerbyType() {
        final ServerFactory factory = locator.getFactory("derby");
        assertNotNull(factory);
        assertTrue(factory instanceof DerbyDatabaseFactory);
    }

    /**
     * Verify that the server factory locator returns a {@link H2DatabaseFactory} when
     * &quot;h2&quot; is passed as the database type.
     */
    @Test
    public void testH2Type() {
        final ServerFactory factory = locator.getFactory("h2");
        assertNotNull(factory);
        assertTrue(factory instanceof H2DatabaseFactory);
    }

    /**
     * Verify that the server factory locator returns a {@link HSQLDBDatabaseFactory} when
     * &quot;hsqldb&quot; is passed as the database type.
     */
    @Test
    public void testHSQLDBType() {
        final ServerFactory factory = locator.getFactory("hsqldb");
        assertNotNull(factory);
// Path: src/main/java/com/btmatthews/maven/plugins/inmemdb/db/derby/DerbyDatabaseFactory.java
// public final class DerbyDatabaseFactory implements ServerFactory {
// 
//     /**
//      * Get the name of the server created by this server factory.
//      *
//      * @return Always returns {@code derby}.
//      */
//     @Override
//     public String getServerName() {
//         return "derby";
//     }
// 
//     /**
//      * Create the server instance.
//      *
//      * @return A {@link DerbyDatabase} instance.
//      */
//     @Override
//     public Server createServer() {
//         return new DerbyDatabase();
//     }
// }
// 
// Path: src/main/java/com/btmatthews/maven/plugins/inmemdb/db/h2/H2DatabaseFactory.java
// public final class H2DatabaseFactory implements ServerFactory {
// 
//     /**
//      * Get the name of the server created by this server factory.
//      *
//      * @return Always returns {@code h2}.
//      */
//     @Override
//     public String getServerName() {
//         return "h2";
//     }
// 
//     /**
//      * Create the server instance.
//      *
//      * @return A {@link H2Database} instance.
//      */
//     @Override
//     public Server createServer() {
//         return new H2Database();
//     }
// }
// 
// Path: src/main/java/com/btmatthews/maven/plugins/inmemdb/db/hsqldb/HSQLDBDatabaseFactory.java
// public final class HSQLDBDatabaseFactory implements ServerFactory {
// 
//     /**
//      * Get the name of the server created by this server factory.
//      *
//      * @return Always returns {@code hsqldb}.
//      */
//     @Override
//     public String getServerName() {
//         return "hsqldb";
//     }
// 
//     /**
//      * Create the server instance.
//      *
//      * @return A {@link HSQLDBDatabase} instance.
//      */
//     @Override
//     public Server createServer() {
//         return new HSQLDBDatabase();
//     }
// }


// Path: src/test/java/com/btmatthews/maven/plugins/inmemdb/test/TestDatabaseFactory.java
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.mockito.MockitoAnnotations.initMocks;
import com.btmatthews.maven.plugins.inmemdb.db.derby.DerbyDatabaseFactory;
import com.btmatthews.maven.plugins.inmemdb.db.h2.H2DatabaseFactory;
import com.btmatthews.maven.plugins.inmemdb.db.hsqldb.HSQLDBDatabaseFactory;
import com.btmatthews.utils.monitor.Logger;
import com.btmatthews.utils.monitor.ServerFactory;
import com.btmatthews.utils.monitor.ServerFactoryLocator;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;

    /**
     * Verify that the server factory locator returns a {@link DerbyDatabaseFactory} when
     * &quot;derby&quot; is passed as the database type.
     */
    @Test
    public void testDerbyType() {
        final ServerFactory factory = locator.getFactory("derby");
        assertNotNull(factory);
        assertTrue(factory instanceof DerbyDatabaseFactory);
    }

    /**
     * Verify that the server factory locator returns a {@link H2DatabaseFactory} when
     * &quot;h2&quot; is passed as the database type.
     */
    @Test
    public void testH2Type() {
        final ServerFactory factory = locator.getFactory("h2");
        assertNotNull(factory);
        assertTrue(factory instanceof H2DatabaseFactory);
    }

    /**
     * Verify that the server factory locator returns a {@link HSQLDBDatabaseFactory} when
     * &quot;hsqldb&quot; is passed as the database type.
     */
    @Test
    public void testHSQLDBType() {
        final ServerFactory factory = locator.getFactory("hsqldb");
        assertNotNull(factory);
        assertTrue(factory instanceof HSQLDBDatabaseFactory);