Methodcentipede - DZone
Briefly

The original pattern leads to a complex chain of responsibilities that complicates testing, as it makes each method dependent on the contracts of the methods it calls.
In this improved version of the code, the messaging logic is distilled into a separate method, allowing easier unit testing and clearer separation of concerns.
Read at dzone.com
[
|
]