IHostAttributes.build(attributes.newBuilder().setMode(mode))));
}
private static HostOffer makeOffer(String offerId, String hostName, MaintenanceMode mode) {
Offer offer = Offers.makeOffer(offerId, hostName);
return new HostOffer(
offer,
IHostAttributes.build(new HostAttributes()
.setHost(hostName)
.setSlaveId(offer.getSlaveId().getValue())
.setAttributes(ImmutableSet.<Attribute>of())