Actually, Max Ross and I talked about this after you asked about it - of course, you can unit test this stuff, you just have to be careful about not calling Component.getInstance in your unit test - move out your validation logic like