I need to test handleIn() method using Mockito.
However the code need to call this legacy code Util.getContextPDO which is a static method.
Note that in test
when(handler2.getIPDO()).thenReturn(pdo);
Will actually call the method and then return pdo regardless.
pdo
Whereas:
doReturn(pdo).when(handler2).getIPDO();
Will return pdo without calling the getIPDO() method.
getIPDO()