Fix the assert should be equals instead of ==

I fixed the assertion for the unit name does not work for me if -ea is set in VM args.