@Override
    public Status check() {
        double load = OperatingSystemBeanManager.getOperatingSystemBean().getSystemLoadAverage();
        if (load == -1) {
            load = OperatingSystemBeanManager.getSystemCpuUsage();
        }

        int cpu = OperatingSystemBeanManager.getOperatingSystemBean().getAvailableProcessors();
        Status.Level level;
        if (load < 0) {
            level = Status.Level.UNKNOWN;
        } else if (load < cpu) {
            level = Status.Level.OK;
        } else {
            level = Status.Level.WARN;
        }

        String message = (load < 0 ? "" : "load:" + load + ",") + "cpu:" + cpu;
        return new Status(level, message);
    }
@Test
    void test() {
        LoadStatusChecker statusChecker = new LoadStatusChecker();
        Status status = statusChecker.check();
        assertThat(status, notNullValue());
        logger.info("load status level: " + status.getLevel());
        logger.info("load status message: " + status.getMessage());
    }