> Task :spring-security-samples-boot-webflux-form:integrationTest

sample.WebfluxFormApplicationTests > loginAndLogout FAILED

    java.lang.NoSuchMethodError at WebfluxFormApplicationTests.java:77

sample.WebfluxFormApplicationTests > loginWhenInvalidUsernameThenError FAILED

    java.lang.NoSuchMethodError at WebfluxFormApplicationTests.java:59

This happens because org.seleniumhq.selenium:htmlunit-driver:2.37.0 uses a method which is available as of net.sourceforge.htmlunit:htmlunit:2.37.0.

However, this dependency is managed by Spring Boot, which provides net.sourceforge.htmlunit:htmlunit:2.36.0.