Program: 112415
Project: 112415
Buggy source:
private RegionCoprocessorEnvironment getSnapshotContextEnvironment(final Configuration conf){
  return new RegionCoprocessorEnvironment(){
    @Override public Region getRegion(){
      return region;
    }
    @Override public RegionInfo getRegionInfo(){
      return region.getRegionInfo();
    }
    @Override public ConcurrentMap<String,Object> getSharedData(){
      throw new UnsupportedOperationException();
    }
    @Override public int getVersion(){
      throw new UnsupportedOperationException();
    }
    @Override public String getHBaseVersion(){
      throw new UnsupportedOperationException();
    }
    @Override public int getPriority(){
      throw new UnsupportedOperationException();
    }
    @Override public int getLoadSequence(){
      throw new UnsupportedOperationException();
    }
    @Override public Configuration getConfiguration(){
      return conf;
    }
    @Override public ClassLoader getClassLoader(){
      throw new UnsupportedOperationException();
    }
    @Override public RegionCoprocessor getInstance(){
      throw new UnsupportedOperationException();
    }
    @Override public OnlineRegions getOnlineRegions(){
      throw new UnsupportedOperationException();
    }
    @Override public ServerName getServerName(){
      throw new UnsupportedOperationException();
    }
    @Override public Connection getConnection(){
      throw new UnsupportedOperationException();
    }
    @Override public MetricRegistry getMetricRegistryForRegionServer(){
      throw new UnsupportedOperationException();
    }
  }
;
}

Fixed version (ground truth):
private RegionCoprocessorEnvironment getSnapshotContextEnvironment(final Configuration conf){
  return new RegionCoprocessorEnvironment(){
    @Override public Region getRegion(){
      return region;
    }
    @Override public RegionInfo getRegionInfo(){
      return region.getRegionInfo();
    }
    @Override public ConcurrentMap<String,Object> getSharedData(){
      throw new UnsupportedOperationException();
    }
    @Override public int getVersion(){
      throw new UnsupportedOperationException();
    }
    @Override public String getHBaseVersion(){
      throw new UnsupportedOperationException();
    }
    @Override public int getPriority(){
      throw new UnsupportedOperationException();
    }
    @Override public int getLoadSequence(){
      throw new UnsupportedOperationException();
    }
    @Override public Configuration getConfiguration(){
      return conf;
    }
    @Override public ClassLoader getClassLoader(){
      throw new UnsupportedOperationException();
    }
    @Override public RegionCoprocessor getInstance(){
      throw new UnsupportedOperationException();
    }
    @Override public OnlineRegions getOnlineRegions(){
      throw new UnsupportedOperationException();
    }
    @Override public ServerName getServerName(){
      throw new UnsupportedOperationException();
    }
    @Override public Connection getConnection(){
      throw new UnsupportedOperationException();
    }
    @Override public MetricRegistry getMetricRegistryForRegionServer(){
      throw new UnsupportedOperationException();
    }
    @Override public Connection createConnection(    Configuration conf) throws IOException {
      throw new UnsupportedOperationException();
    }
    @Override public ExtendedCellBuilder getCellBuilder(){
      throw new UnsupportedOperationException();
    }
  }
;
}