### Question:
BidList implements Parcelable { public void add(Bid bid) { if (hasBid(bid)) { throw new IllegalArgumentException("Duplicate bid found!"); } bids.add(bid); } protected  BidList(Parcel in); void add(Bid bid); boolean hasBid(Bid bid); Bid getBid(int index); void delBid(Bid bid); int size(); @Override int describeContents(); @Override void writeToParcel(Parcel dest, int flags); static final Creator<BidList> CREATOR; }### Answer:
@Test public void add() throws Exception { BidList bidsList; bidsList = new BidList(); Bid myBid = new Bid("test_user_name", (float) 19.99,"declined"); assertFalse(Arrays.asList(bidsList).contains(myBid)); bidsList.add(myBid); System.out.println("Test user name is: " + bidsList.getBid(0).getUsername() + '\n'); System.out.println("Test bid value is: " + bidsList.getBid(0).getValue() + '\n'); System.out.println("Test bid value is: " + bidsList.getBid(0).getFlag() + '\n'); assertTrue(Arrays.asList(bidsList).contains(myBid)); }