• This is a nice method when your unit testable stuff shares a PKG with things that use external resources, another way to handle it is to use separate packages for the two things (e.g. model (unit) and handlers (integration) ) but that's not always practical.