Unit test a protected method using mockito or powermock

Hello team,

I am creating a custom field type which extends AbstractMultiCFType. I had to @Override a protected method “protected String convertDbValueToType(Object obj)”. Now, I am writing unit tests to my custom field, and I am not able to do so for this method since it is not reachable from my unit test class. I have researched a lot, and found that I will have to use PowerMock instead of Mockito. However, all the examples consist of a protected method which is being called by a public method. In my case, this method is not being called by a public method so I will have to access it directly. Any Ideas ??
Thank you :slight_smile: