### Question:
PokerHelper { public static List<Poker> getPoker(int[] indexes, List<Poker> pokers){ List<Poker> resultPokers = new ArrayList<>(indexes.length); for(int index: indexes){ resultPokers.add(pokers.get(index - 1)); } sortPoker(resultPokers); return resultPokers; }  static void sortPoker(List<Poker> pokers); static int[] getIndexes(Character[] options, List<Poker> pokers); static boolean checkPokerIndex(int[] indexes, List<Poker> pokers); static PokerSell checkPokerType(List<Poker> pokers); static int parseScore(SellType sellType, int level); static List<Poker> getPoker(int[] indexes, List<Poker> pokers); static boolean comparePoker(List<Poker> pres, List<Poker> currents); static List<List<Poker>> distributePoker(); static String printPoker(List<Poker> pokers); static String textOnlyNoType(List<Poker> pokers); static int parsePokerColligationScore(List<Poker> pokers); static List<PokerSell> parsePokerSells(List<Poker> pokers); static int pokerPrinterType; static int totalPrinters; }### Answer:
@Test public void testGetPoker() { Assert.assertEquals(PokerLevel.LEVEL_3,PokerHelper.getPoker(new int[]{1, 2}, pokers).get(0).getLevel()); Assert.assertEquals(PokerType.BLANK,PokerHelper.getPoker(new int[]{1, 2}, pokers).get(0).getType()); Assert.assertEquals(PokerLevel.LEVEL_4,PokerHelper.getPoker(new int[]{1, 2}, pokers).get(1).getLevel()); Assert.assertEquals(PokerType.DIAMOND,PokerHelper.getPoker(new int[]{1, 2}, pokers).get(1).getType()); }