Failed assertions throw AssertionFailedException.