private ReadWriteLockMetrics create(ReadWriteLock lock, MetricsSource ms) {
    Configuration dummyConf = new Configuration();

    HiveConf.setBoolVar(dummyConf,
        HiveConf.ConfVars.LLAP_COLLECT_LOCK_METRICS, true);
    return (ReadWriteLockMetrics)ReadWriteLockMetrics.wrap(dummyConf, lock, ms);
  }
Helper to produce <code>ReadWriteLockMetrics</code> instances.
The wrapping of lock instances is configuration dependent. This helper ensures that the
configuration creates wrapped lock instances.

@param lock The lock to wrap
@param ms The metrics source, storing the lock measurements
@return The wrapped lock
llap-common/src/test/org/apache/hadoop/hive/llap/metrics/TestReadWriteLockMetrics.java