@Test
public void testSquashCGroupOperationsWithInvalidOperations() {

  List<PrivilegedOperation> ops = new ArrayList<>();
  //Ensure that disallowed ops are rejected
  ops.add(opTasksNone);
  ops.add(opDisallowed);
  try {
    PrivilegedOperationExecutor.squashCGroupOperations(ops);
    Assert.fail("Expected squash operation to fail with an exception!");
  } catch (PrivilegedOperationException e) {
    LOG.info("Caught expected exception : " + e);
  }
  //Ensure that invalid strings are rejected
  ops.clear();
  ops.add(opTasksNone);
  ops.add(opTasksInvalid);
  try {
    PrivilegedOperationExecutor.squashCGroupOperations(ops);
    Assert.fail("Expected squash operation to fail with an exception!");
  } catch (PrivilegedOperationException e) {
    LOG.info("Caught expected exception : " + e);
  }
}