JUnit assertions are designed to remain silent on success and report output only when a failure occurs. This behaviour helps…