标签: java mockito
public class Details extends SubDetails{ } public String getString(Details details){ SubDetails subDetails = (SubDetails) details; }
在上述情况下如何模拟类型转换?