public static int getNumberCPUCores() {
        return Runtime.getRuntime().availableProcessors();
    }
@Test
    void testCpuCores() {
        try {
            assertThat(Hardware.getNumberCPUCores()).isGreaterThanOrEqualTo(0);
        } catch (Exception e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
    }