LPS-51463 Change to throw AssertError to prevent log4j from swallowing the error