@Test
	public void testDrawWorld() {
		Cell[][] cells = new Cell[][]{
				{Cell.LIVING, Cell.DEAD},
				{Cell.DEAD, Cell.LIVING},
			};
		Integer numberOfLivingCells = 0;
		Integer numberOfDeadCells = 0;
		for (int i = 0; i < cells.length; i++) {
			for (int j = 0; j < cells[i].length; j++) {
				if (cells[i][j] == Cell.LIVING) {
					numberOfLivingCells++;
				} else {
					numberOfDeadCells++;
				}
			}
		}
		World world = worldFactory.createWorld(cells);
		universe.setWorld(world);
		WorldViewerPanel viewerPanel = panelFactory.createWorldViewerPanel(universe);
		GraphicsMock g = new GraphicsMock();
		viewerPanel.paintComponent(g);
		Color living = viewerPanel.getLivingColor();
		assertEquals("The number of drawn living cells should equal the number of living cells", numberOfLivingCells, g.getColorMap().get(living));
		// Should not throw error on null Graphics
		viewerPanel.paintComponent(null);
	}