I know that it isn't going to be the answer that you are looking for but unit testing private methods is bad form.
You should likely refactor your code such that the effects of the private method can be tested/observed via the public API.
Since the code sample you provided is so short it is difficult to offer specific strategies, but I can make some general statements about the use-case.
The best way to test a private method is via another public method. If this cannot be done, then one of the following conditions is true:
- private method is unreachable (dead) code
- There is a design smell near the class that you are testing; the private method should still be having an observable effect on the class
- The method that you are trying to test should not be private; Perhaps changing the visiblity of the method is perfectly acceptable in this instance.
Additionally you can separate the UI code from the application logic using the GWT UIBinder. Once the UI has been separated out, you can use JUnit tests to test the remaining code. GWTTestcases are only for classes that require GWT.create(...) and they run very slowly (compared to junit), so it is best to structure the code such that the majority of the tests can be done using junit and then use gwttestcase to cover the remainder. If you can achieve this structure then it opens up additional avenues for testing using easymock/mockito/reflection etc.