Migrate an ExpectedException that takes Hamcrest matchers to AssertJ

MSAL

JUnit 4's ExpectedException takes Hamcrest matchers for the exception, its message and its cause. Migrate the tests that pass it one to AssertJ's assertThatExceptionOfType(..), so that no Hamcrest is left behind.

org.openrewrite.java.testing.hamcrest.MigrateExpectedExceptionMatchersToAssertJ
mod run . --recipe=org.openrewrite.java.testing.hamcrest.MigrateExpectedExceptionMatchersToAssertJ

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.