Use JUnit5's assertSame or assertNotSame instead of assertTrue(... == ...)

MSAL

Prefers the usage of assertSame or assertNotSame methods instead of using of vanilla assertTrue or assertFalse with a boolean comparison. Only applies when both operands are reference types — primitive operands are handled by AssertTrueComparisonToAssertEquals.

org.openrewrite.java.testing.junit5.UseAssertSame
mod run . --recipe=org.openrewrite.java.testing.junit5.UseAssertSame

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