@Test
public void testWithGhostController() throws FactoryException {
mainUI.initialize();
assertNull(mainUI.getGhostController());
IController ghostMover1 = new RandomGhostMover(mainUI.getGame());
IController ghostMover2 = new RandomGhostMover(mainUI.getGame());
//Below we apply forced pointer comparison to check the setter.
mainUI.withGhostController(ghostMover1);
assertSame(ghostMover1, mainUI.getGhostController());