trytestassertjReformat according to Style : checkUse static import if possible : checkShorten FQ names : checkApplicable in Java: statementtry { org.assertj.core.api.Assertions.failBecauseExceptionWasNotThrown($ExceptionClass$.class); } catch ($ExceptionClass$ ex) { org.assertj.core.api.Assertions.assertThat(ex).hasMessage(""); }