The ArqSecuredManagementInterfaceTest test fails on IBM JDK, because the security realm is not configured correctly. This is because we rely on the Enhanced* classes and method "overrides" (that are not real overrides) being picked up first. This doesn't work on IBM JDK, because Class.getMethods() return order is different than on OpenJDK. Relying on order of Class.getMethods() is wrong, the order is unspecified. We need to sort the return value ourselves, so that subclasses come first, before superclasses.