Shipment shipment = Shipment.create(shipmentMap);
List<String> buyCarriers = new ArrayList<String>();
buyCarriers.add("USPS");
List<String> buyServices = new ArrayList<String>();
buyServices.add("PriorityMailInternational");
<BUG>shipment = shipment.buy(shipment.lowestRate(buyCarriers, buyServices));
System.out.println(shipment.prettyPrint());</BUG>
} catch (EasyPostException e) {
e.printStackTrace();
}

Shipment shipment = Shipment.create(shipmentMap);
List<String> buyCarriers = new ArrayList<String>();
buyCarriers.add("USPS");
List<String> buyServices = new ArrayList<String>();
buyServices.add("PriorityMailInternational");
List<String> buyServiceCodes = new ArrayList<String>();
buyServiceCodes.add("fedex.fedex_ground");
Map<String, Object> buyMap = new HashMap<String, Object>();
buyMap.put("rate", shipment.lowestRate(buyServiceCodes));
buyMap.put("insurance", 249.99);
shipment = shipment.buy(buyMap);
System.out.println(shipment.prettyPrint());
} catch (EasyPostException e) {
e.printStackTrace();
