I started to use JUnit and Mockito in my projects, what I have noticed quickly is I ended up converting my private methods to public in order to be accesed from test classes, which is a terrible solution.
Sometimes it is sufficient to test only the public methods, but sometimes i want to really test some internal methods as well. Is there a workaround for this? for example a special annotation that allows JUnit to mock a private method as public or something like that?