The Myclass has a method getdata(String name). which return the Student class object after calling the setter method So how to write the test for this the code is here....
class Myclass {
Student st = new Student();
public Student getdata(String name){
st.setName(name);
return st;
}
}
I want to test weather the st is null or not