The simplest example:I have the following method:
public String testMethod(String arg){
.....
}
I want to mock this method to return passed argument as a result. For example:
testMethod("aString") returns "aString"
testMethod("anotherString") returns "anotherString"
I know I can hard code this behavior, but I want it generic.