@SuppressWarnings("unchecked")
    private E getChoreObj(String fieldName) {
      try {
        Field masterField = HMaster.class.getDeclaredField(fieldName);
        masterField.setAccessible(true);
        return (E) masterField.get(hMaster);
      } catch (Exception e) {
        throw new AssertionError(
          "Unable to retrieve field '" + fieldName + "' from HMaster instance.", e);
      }
    }
Reflect into the {@link HMaster} instance and find by field name a specified instance of
{@link ScheduledChore}.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterChoreScheduled.java