### Question:
Player { public Bid getBid(int prizeCard) { int offer = strategy.selectCard(prizeCard, hand.cardsAsIntStream(), maxCard); Bid bid = new Bid(prizeCard, offer, this); return bid; } Player(String name, Strategy strategy, int maxCard);  Player(String name, Strategy strategy, int maxCard, Hand hand); private  Player(String name, Strategy strategy, int maxCard, Hand hand, PlayerStats playerStats); PlayerStats getPlayerStats(); String toString(); String toString(int numGames); int getNumGamesWon(); int getTotal(); String getName(); Player winsGame(); Player winsRound(Bid bid); Player losesRound(Bid bid); Bid getBid(int prizeCard); long getNumCardsInHand(); Player reset(Hand newHand);  }### Answer:
@Test public void testGetBid_Basic() { Strategy strategy = new MaxCard(); int maxCard = 40; int prizeCard = 10; List<Integer> cards = IntStream.range(1,5).boxed().collect(toList()); Hand hand = new Hand(cards); Player player = new Player("Randy", strategy, maxCard, hand); Bid bid = player.getBid(prizeCard); assertEquals(player, bid.getBidder()); assertEquals(4, bid.getOffer()); assertEquals(prizeCard, bid.getPrizeCard()); }