@Parameters(name="{1}")
public static Collection<Object[]> data() throws IOException, InterruptedException {
String u = HiveTestUtils.getFileFromClasspath("DummyDriver.txt");
Map<File, String> extraContent=new HashMap<>();
extraContent.put(new File("META-INF/services/java.sql.Driver"), dummyDriverClazzName);
File jarFile = HiveTestUtils.genLocalJarForTest(u, dummyDriverClazzName, extraContent);
String pathToDummyDriver = jarFile.getAbsolutePath();
return Arrays.asList(new Object[][] {
{ "jdbc:postgresql://host:5432/testdb", "org.postgresql.Driver",
System.getProperty("maven.local.repository") + File.separator + "postgresql"
+ File.separator + "postgresql" + File.separator + "9.1-901.jdbc4" + File.separator
+ "postgresql-9.1-901.jdbc4.jar", true },
{ "jdbc:dummy://host:5432/testdb", dummyDriverClazzName, pathToDummyDriver, false } });
}