Thanks for the reply.
Yes, actually I don't want to know the side effect. I just want to test the logic. I had planned to use stub or mock. But there are several branches. I thought it is a little duplicated. Because if gotten good code coverage, in every case I have to write the stub or mock for methods called. Could you give me some advice? Thank you.