// The functionality of needsReload is tested by
  // ExpirationTest.sh. Only parameter checking is tested here.
  private static void testNeedsReload() {
    long loadTime = System.currentTimeMillis();

    // NPE test
    final int NARGS = 5;
    for (int mask = 0; mask < (1 << NARGS) - 1; mask++) {
      Object[] data = getNpeArgs(NARGS, mask);
      Locale loc = (Locale) data[1];
      try {
        boolean b =
            CONTROL.needsReload(
                (String) data[0], loc,
                (String) data[2], (ClassLoader) data[3],
                (ResourceBundle) data[4], loadTime);
        error(
            "needsReload(%s, %s, %s, %s, %s, loadTime) doesn't throw NPE.%n",
            data[0], toString(loc), data[2], data[3], data[4]);
      } catch (NullPointerException e) {
      }
    }
  }