code: public MockRestServiceServer build() {
  		if (this.ignoreExpectOrder) {
  			this.builder.ignoreExpectOrder(true); // default is false
  		}
  		MockRestServiceServer server = this.builder.build();
  		List<StubMapping> mappings = new ArrayList<>();
  		for (String location : this.locations) {
  			try {
  				for (Resource resource : this.resolver.getResources(pattern(location))) {
  					StubMapping mapping = mapping(resource);
  					mappings.add(mapping);
  				}
  			}
  			catch (IOException e) {
  				throw new IllegalStateException("Cannot load resources for: " + location,
  						e);
  			}
  		}
  		if (this.ignoreExpectOrder) {
  			Collections.sort(mappings, new StubMappingComparator());
  		}
  		for (StubMapping mapping : mappings) {
  			ResponseActions expect = responseActions(server, mapping);
  			expect.andExpect(method(
  					HttpMethod.valueOf(mapping.getRequest().getMethod().getName())));
  			mapping.getRequest().getBodyPatterns();
  			bodyPatterns(expect, mapping.getRequest());
  			requestHeaders(expect, mapping.getRequest());
  			expect.andRespond(response(mapping.getResponse()));
  		}
  		return server;
  	}
docs: Build a MockRestServiceServer from the configured stubs. The server can later be
  verified (optionally), if you need to check that all expected requests were made.
  @return a MockRestServiceServer