Using Predicates to Send Different Responses

From Testing Microservices with Mountebank by Brandon Byars

This article discusses a unique kind of service testing – testing a service that depends on a fictional “Abagnale” service. It involves doing something which has probably never been done before in the history of mocking frameworks: we need to create a virtual imposter that pretends to be a real imposter.

© 2021 Manning — Design Credits