@Test
    @SetSystemProperty(key = "com.linecorp.armeria.preferredIpV4Addresses",
                       value = "211.111.111.111,10.0.0.0/8,192.168.1.0/24")
    void preferredIpV4Addresses() throws Throwable {
        final Lookup lookup = MethodHandles.publicLookup();
        final MethodHandle method =
                lookup.findStatic(flags, "preferredIpV4Addresses", MethodType.methodType(
                        Flags.class.getMethod("preferredIpV4Addresses").getReturnType()));
        final Predicate<InetAddress> preferredIpV4Addresses = (Predicate) method.invoke();
        assertThat(preferredIpV4Addresses).accepts(InetAddress.getByName("192.168.1.1"),
                                                   InetAddress.getByName("10.255.255.255"),
                                                   InetAddress.getByName("211.111.111.111"));
        assertThat(preferredIpV4Addresses).rejects(InetAddress.getByName("192.168.2.1"),
                                                   InetAddress.getByName("11.0.0.0"),
                                                   InetAddress.getByName("211.111.111.110"));
    }
Makes sure OpenSSL SSLEngine is used instead of JDK SSLEngine while running tests
on Linux, Windows and OS X.
core/src/test/java/com/linecorp/armeria/common/FlagsTest.java