Thread.currentThread().setContextClassLoader(initialThreadClassloader);
}
@Test
public void extend_classloader_with_jdbc_driver() throws Exception {
FileCache cache = mock(FileCache.class);
File fakeDriver = new File(Resources.getResource(JdbcDriverHolderTest.class, "JdbcDriverHolderTest/jdbc-driver.jar").getFile());
when(cache.get(eq("ojdbc14.jar"), eq("fakemd5"), any(FileCache.Downloader.class))).thenReturn(fakeDriver);
/* jdbc-driver.jar has just one file /foo/foo.txt */
assertThat(Thread.currentThread().getContextClassLoader().getResource("foo/foo.txt")).isNull();
ServerClient server = mock(ServerClient.class);