Junit spy static method.