}
Map<String, Object> batchMap = new HashMap<String, Object>();
batchMap.put("shipment", shipments);
Batch batch = Batch.create(batchMap);
for (Shipment createdShipment : batch.getShipments()) {
<BUG>createdShipment.newRates();
createdShipment = createdShipment.refresh();
</BUG>
List<String> buyCarriers = new ArrayList<String>();
buyCarriers.add("USPS");

}
Map<String, Object> batchMap = new HashMap<String, Object>();
batchMap.put("shipment", shipments);
Batch batch = Batch.create(batchMap);
for (Shipment createdShipment : batch.getShipments()) {
createdShipment = createdShipment.newRates();
List<String> buyCarriers = new ArrayList<String>();
buyCarriers.add("USPS");
