@Test
public void testGetColumnMetaData() throws SQLException {

  HiveConnection hiveConnection = createNiceMock(HiveConnection.class);
  DatabaseMetaData metadata = createNiceMock(DatabaseMetaData.class);
  expect(hiveConnection.getMetaData()).andReturn(metadata);
  ResultSet resultSet = createNiceMock(ResultSet.class);
  expect(metadata.getColumns(anyString(), anyString(), anyString(), anyString())).andReturn(resultSet);
  replay(hiveConnection, metadata, resultSet);
  HiveJdbcConnectionDelegate hiveJdbcConnectionDelegate = new HiveJdbcConnectionDelegate();
  ResultSet columnMetadata = hiveJdbcConnectionDelegate.getColumnMetadata(hiveConnection, new GetColumnMetadataJob("", "", "", ""));
  assertEquals(resultSet, columnMetadata);
  verify(hiveConnection, metadata, resultSet);
}