Allow to compare method for more robust testing as sometimes method order depends on JDK