Mockito Mock Interface Instance, Similar approach will work with older versions of these libraries as well.