i got this nasty exception while running unit test. I tried to use constructor but resulted in exception too. I\'m using greenmail and junit5.
java.lang.NullPoint