*/
public class AlternativeDriverTest extends Assert {
@Test
public void testConnect() throws Exception {
final AlternativeDriver orange = new AlternativeDriver(new jdbcDriver(), "jdbc:hsqldb:mem:orange");
final Driver general = DriverManager.getDriver(orange.getUrl());
assertNotSame(general, orange);
orange.register();
assertSame(orange, DriverManager.getDriver(orange.getUrl()));
assertSame(general, DriverManager.getDriver(orange.getUrl() + "foo"));
final AlternativeDriver green = new AlternativeDriver(new jdbcDriver(), "jdbc:hsqldb:mem:green");
green.register();
assertSame(orange, DriverManager.getDriver(orange.getUrl()));
assertSame(green, DriverManager.getDriver(green.getUrl()));
assertSame(general, DriverManager.getDriver(orange.getUrl() + "foo"));
assertSame(general, DriverManager.getDriver(green.getUrl() + "bar"));
final AlternativeDriver green2 = new AlternativeDriver(new jdbcDriver(), "jdbc:hsqldb:mem:green");
green2.register();
assertSame(orange, DriverManager.getDriver(orange.getUrl()));
assertSame(green2, DriverManager.getDriver(green.getUrl()));
assertSame(general, DriverManager.getDriver(orange.getUrl() + "foo"));