doOperation(placementState, UriUtils.buildUri(host, placementState.documentSelfLink),
expectedFailure, Action.PUT);
placementState.maxNumberInstances = newMaxInstance;
try {
doOperation(placementState, UriUtils.buildUri(host, placementState.documentSelfLink),
expectedFailure, Action.PUT);
fail("expect maxNumberInstances validation error");
placementState.resourcePoolLink = createResourcePool("new", 0L, 0L).documentSelfLink;
try {
doOperation(placementState, UriUtils.buildUri(host, placementState.documentSelfLink),
expectedFailure, Action.PUT);
fail("expect resourcePoolLink can't be changed validation error");
placementState.storageLimit = 567L;
try {
doOperation(placementState, UriUtils.buildUri(host, placementState.documentSelfLink),
expectedFailure, Action.PUT);
fail("expect storageLimit can't be changed validation error");
placementState.cpuShares = 34;
try {
doOperation(placementState, UriUtils.buildUri(host, placementState.documentSelfLink),
expectedFailure, Action.PUT);
fail("expect cpuShares can't be changed validation error");