concept object in category microservice

This is an excerpt from Manning's book Testing Microservices with Mountebank.
Service virtualization involves nothing more than using test doubles that operate over the wire and is analogous to how you test car batteries without a real alternator. You silo the runtime environment into the bits relevant to test a single service or application and fake the rest, assuming standard interfaces. In traditional mocking and stubbing libraries, you would stub out a dependency and inject that into your object’s constructor, allowing your tests to probe the object under test in isolation. With service virtualization, you virtualize a service and configure the service under test to use the virtualized service’s URL as a runtime dependency (figure 1.9). You can set up the virtual service with a specific set of canned responses, allowing you to probe the service under test in isolation.
The console.log function in JavaScript prints the parameter to the standard output of the running process, which in this case is mb. The JSON.stringify function converts an object to a JSON string, allowing you to inspect the full object graph. This code is quite ugly—I outdented the console.log function to not lose sight of it, and I returned an empty object for the response, relying on the standard default response. If you’ve written code for longer than a few seconds, you’ll likely recognize the pattern. Most code starts out ugly before you figure out how to communicate your intent to a ruthlessly precise computer.