Class Sample{
int property1;
int property2;
protected method1(Object1 obj1)
{
.
.
obj1.process(new Object2(property1,property2));
.
.
}
}
I want to verify that obj1.process is called with certain value. Im happy to provide more clarification.