public void addMapping(Matcher<Request> requestMatcher,ResponseSource responseSource){
  mappings.addFirst(new MatcherResponseSourcePair(requestMatcher,responseSource));
}

public void addMapping ( Matcher < Request > requestMatcher , ResponseSource responseSource ) { mappings . addFirst ( new MatcherResponseSourcePair ( requestMatcher , responseSource ) ) ; }
configure a response for matching requests . each time a request is sent that matches the supplied matcher , the to - be - specified response or responsesource will be used . request to response mappings defined using this method will be applied in reverse order of addition , meaning that you can override previous choices in test code .
