@Test
public void getPropertyInfo() throws Exception {

  DriverPropertyInfo[] driverPropertyInfos = new DriverPropertyInfo[0];
  when(mockRealDriver.acceptsURL("jdbc:mockdriver")).thenReturn(true);
  when(mockRealDriver.getPropertyInfo(eq("jdbc:mockdriver"), any(Properties.class)))
      .thenReturn(driverPropertyInfos);

  Properties info = new Properties();
  assertThat(driver.getPropertyInfo("jdbc:stackdriver:mockdriver", info))
      .isSameAs(driverPropertyInfos);
  verify(mockRealDriver).getPropertyInfo("jdbc:mockdriver", info);
}