Hi
srinivas1221
,
You can create a derived class (Say Child) from this class (Your Class - where you cannot make any changes), and in derived class, you may elevate the access level to public for the method of interest and use objects of derived class for unit testing and asserting purposes.
Make sure you use this derived class only for purpose of testing. You may choose to create this derived class as private for your TestClass.