There is a third-party library whose spy class object is needed. But the only class constructor is protected, which accepts 1 String parameter. To create a class 1 heir to the test, I think it is not correct. Maybe someone knows how to create an instance of this class and pass an argument?
protectedmodifier at the constructor prevent you from creating an instance of this class? You tried? ideone.com/sexhyT - Alexey Shimansky