GameFactory { public static IGame create(int width, int height, int bombs) { return new Game(width, height, bombs, BOARD_MINER); } private  GameFactory(); static IGame create(int width, int height, int bombs); static void writeToStream(IGame game, OutputStream stream); static IGame readFromStream(InputStream stream); static IGame clone(IGame game);  }
@Test public void testCreate() { IGame game = GameFactory.create(4, 6, 8); assertEquals(8, game.getBombCount()); assertEquals(new Point(4, 6), game.getBoard().getDimension()); }