@Test
    void testApiConsistencyBetweenFlagsAndFlagsProvider() {
        //Check method consistency between Flags and FlagsProvider excluding deprecated methods
        final Set<String> flagsApis = Arrays.stream(Flags.class.getMethods())
                                            .filter(m -> !m.isAnnotationPresent(Deprecated.class))
                                            .map(Method::getName)
                                            .collect(Collectors.toSet());
        flagsApis.removeAll(Arrays.stream(Object.class.getMethods())
                                  .map(Method::getName)
                                  .collect(toImmutableSet()));

        final Set<String> armeriaOptionsProviderApis = Arrays.stream(FlagsProvider.class.getMethods())
                                                             .filter(m -> !m.isAnnotationPresent(
                                                                     Deprecated.class))
                                                             .map(Method::getName)
                                                             .collect(Collectors.toSet());
        final Set<String> knownIgnoreMethods = ImmutableSet.of("priority", "name");
        armeriaOptionsProviderApis.removeAll(knownIgnoreMethods);

        assertThat(flagsApis).hasSameElementsAs(armeriaOptionsProviderApis);
    }
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