I have a problem (Java). How do I get the called private methods or other classes methods called from a method under test in automatic way?

I think parsing is not an answer, does anyone have some suggestions?

For example


public int method1()
// do something

// do somethin else



I want to get all methods wich are called from class 1, in method 1.

For example to generate Mock objects with spicified return-values