@Test(expected = BadRequestException.class)
public void testUpdateHostsDoesntAcceptScalingAdjustmentsWithDifferentSigns() throws HttpResponseException {
// GIVEN
Set<HostGroupAdjustmentJson> hostGroupAdjustments = new HashSet<>();
HostGroupAdjustmentJson hga1 = new HostGroupAdjustmentJson();
hga1.setHostGroup("slave_1");
hga1.setScalingAdjustment(-2);
HostGroupAdjustmentJson hga2 = new HostGroupAdjustmentJson();
hga2.setHostGroup("master");
hga2.setScalingAdjustment(3);
hostGroupAdjustments.add(hga1);
hostGroupAdjustments.add(hga2);
// WHEN
underTest.updateHosts(stack.getId(), hostGroupAdjustments);
}