Testing a JavaBean with JUnit

Hello!

I am new to JUnit in particular and to test-driven development in general. I want to learn from you how to use JUnit properly in a GUI environment.

What I want to know is how to test a JavaBean that has a private property. If a JavaBean property changes, a notification is sent to all events that track it. I think that this will exceed the abilities of JUnit (or perhaps any other modern testing tool), as the tester has to write simple tests that are independant of each other. Otherwise, an involved test may have a higher probability of having errors than the original code to be tested.

Thank you for your reply.