Commands are the main entities in the BLL package, each command representing a single logical action in the system.
Most of the commands' external dependencies (such as DAOs, validators,
helpers, etc) are injected - i.e., they are annotated by
the CDI framework is in charge of initializing them. Luckily,
Mockito suites testing such code very well,
and by annotating the class under test with
framework will inject any field annotated with
It's worth noting that the BLL module overrides Mockito's default
answer, and any method returning a
ValidationResult will return by
ValidationResult.VALID and not
null (unless explicitly
stubbed to return a different value, of course).