MockMainView mw = new MockMainView("gnubridge");
ViewFactory.setMockMainView(mw);
MockScoringTracker mockTracker = new MockScoringTracker();
ScoringTracker.setInstance(mockTracker);
MainController mainController = new MainController();
mainController.getBiddingController().placeBid(7, "NT");
mainController.playGame();
assertEquals("initial scoring tracker not obtained through factory method", mockTracker, ((MockDealView) mw
.getDealView()).getScoringTracker());
mainController.newGame();
mainController.getBiddingController().placeBid(7, "NT");
mainController.playGame();
assertEquals("score was not preserved in between games", mockTracker, ((MockDealView) mw.getDealView())
.getScoringTracker());
}