Subverting Java Access Protection for Unit Testing
Subject:   Possible Usage: Inserting mock objects
Date:   2004-05-19 03:27:28
From:   mdaf00
This technique could be useful for inserting
mockobjects into a unit. Normally one is forced
to create accessors to allow this, which break
encapsualtion and add code clutter.

Previously I have seen aspectj used to insert
mocks without modifying the unit's code. This
approach is simpler, and therefore preferable in
my opinion.