I am trying to mock out a private method that is making a JNDI call. When that method gets called from a unit test, it throws an exception^. I would like to mock-out that me
when you use spy to construct a mock object, its a real half backed object. My guess would be to get rid of spy. Work on pure mock object.
spy