Description
The driver should return "null" if it realizes it is the wrong kind of driver to connect to the given URL.
Your driver is throwing an exception instead of returning null.
Here's the start of a test case:
public static void main(String[] args) throws Exception { Class.forName(PhoenixDriver.class.getName()); PhoenixDriver d = (PhoenixDriver) DriverManager.getDriver("jdbc:phoenix"); d.close(); DriverManager.getConnection("any text whatever you want to put here"); }