@Test
public void testCreateStatement() throws SQLException {

  HiveConnection hiveConnection = createNiceMock(HiveConnection.class);
  HiveStatement hiveStatement = createNiceMock(HiveStatement.class);
  expect(hiveConnection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY)).andReturn(hiveStatement);
  replay(hiveConnection);
  HiveStatement statement = new HiveJdbcConnectionDelegate().createStatement(hiveConnection);
  assertEquals(hiveStatement, statement);
}