I have this method
public <T, R> R deepCopy(T source, R destination) {
beanMapper.map(source, destination);
return destination;
}
and want to mock with different method params like
mock.deepCopy(classA(), classB()).thenReturn(classB());
mock.deepCopy(classB(), classC()).thenReturn(classC());
but getting class cast exception.