BiddingResponse implements Comparable<BiddingResponse> { @Override public int compareTo(BiddingResponse other) { if (this.biddingPriceUSD > other.getBiddingPriceUSD()) { return -1; } else if (this.biddingPriceUSD == other.getBiddingPriceUSD()) { return 0; } else { return 1; } } BiddingResponse();  BiddingResponse(Class bidderClass, double biddingPriceUSD, Object payload,
						   Bidder bidder, BidRequestInfo bidRequestInfo);  BiddingResponse(Class bidderClass, String errorMessage, Bidder bidder, BidRequestInfo bidRequestInfo); Class getBidderClass(); void setBidderClass(Class bidderClass); double getBiddingPriceUSD(); void setBiddingPriceUSD(double biddingPriceUSD); Object getPayload(); void setPayload(Object payload); Bidder getBidder(); void setBidder(Bidder bidder); String getErrorMessage(); void setErrorMessage(String errorMessage); BidRequestInfo getBidRequestInfo(); void setBidRequestInfo(BidRequestInfo bidRequestInfo); @Override int compareTo(BiddingResponse other);  }
@Test public void testCompareTo() { assertTrue(br1.compareTo(br2) < 0); }