If you are working with microservices, you may find that you are havinga lot of dependencies on other services. If you want your tests to beautonomous, that is, running in isolation of those dependencies, you caneither use a tool like WireMock, or you can usea mocking framework. Recently, I came across JMockit, a mockingframework for Java. To mock external dependencies, you can use so-called “fakes”. Say you use aservice that knows the credentials of the customers of your e-store, and you...