use main replace junit for thread testing