### Question:
MinCard implements Strategy { @Override public int selectCard(int prizeCard, IntStream hand, int maxCard) { OptionalInt result = hand.min(); return result.getAsInt(); }  @Override int selectCard(int prizeCard, IntStream hand, int maxCard);  }### Answer:
@Test public void testSelectCard() { Strategy strategy = new MinCard(); int maxCard = 50; int prizeCard = 10; int handSize = 20; IntStream hand = IntStream.range(1,handSize+1).boxed().mapToInt(i -> i); int result = strategy.selectCard(prizeCard, hand, maxCard); assertEquals(1, result); }