    @Test
    @InSequence(1)
    public void testAddBid() {

        WebTarget target = ClientBuilder.newClient()
                .target("http://localhost:8080/actionbazaar-rest-test/rest/bids");
        // Save a new bid.
        Bid bid = new Bid();

        bid.setBidder("nrahman");
        bid.setItem("Test item");
        bid.setAmount(130.75);

        bid = target.request("application/json").post(Entity.json(bid), Bid.class);

        // Make sure it was correctly saved.
        bidId = bid.getId();

        bid = target.path("{id}").resolveTemplate("id", bidId)
                .request("application/json").get(Bid.class);

        assertEquals("nrahman", bid.getBidder());
        assertEquals("Test item", bid.getItem());
        assertEquals(new Double(130.75), bid.getAmount());
    }