You don't need the main method at all here. You should get rid of it, and run() and implements Runnable(). Heck, you could make TestModule the only class in this test!