public static Optional<String> getOsName() {
        try {
            return Optional.of(System.getProperty(SYSTEM_PROP_OS_NAME));
        } catch (SecurityException e) {
            return Optional.empty();
        }
    }
@Test
    void getOsNameTest() {
        Assertions.assertDoesNotThrow(SystemUtils::getOsName);
    }