I'm calling Component.getInstance(Needed.class)
in the constructor of one of my classes, which is not a seam component.
That works just fine, but I'm trying to cover it with unit tests and what I'm getting is IllegalStateException
on the above line.
Is there a way to cover Component.getInstance with tests?
By the way I'm using unitils library... Thanks in advance