FunctionStatsManager { public FunctionServiceStats getFunctionServiceStats() { return functionServiceStats; } FunctionStatsManager(boolean statsDisabled, StatisticsFactory statisticsFactory,
      Supplier<MeterRegistry> meterRegistrySupplier); @VisibleForTesting  FunctionStatsManager(boolean statsDisabled, StatisticsFactory statisticsFactory,
      FunctionServiceStats functionServiceStats, Supplier<MeterRegistry> meterRegistrySupplier); FunctionServiceStats getFunctionServiceStats(); FunctionStats getFunctionStatsByName(String name); void close(); static FunctionStats getFunctionStats(String functionID, InternalDistributedSystem ds); static FunctionStats getFunctionStats(String functionID);  }
@Test public void constructor_createsFunctionServiceStats() { FunctionStatsManager functionStatsManager = new FunctionStatsManager(false, statisticsFactory, () -> meterRegistry); FunctionServiceStats functionServiceStats = functionStatsManager.getFunctionServiceStats(); assertThat(functionServiceStats) .isNotNull(); }