content: package com.sast.astbenchmark.case_language_maturity.completeness.single_app_tracing.function_call.library_function;
  
  import org.springframework.web.bind.annotation.PathVariable;
  import org.springframework.web.bind.annotation.PostMapping;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RestController;
  
  import java.io.ByteArrayInputStream;
  import java.io.ByteArrayOutputStream;
  import java.io.ObjectInputStream;
  import java.io.ObjectOutputStream;
  import java.io.Serializable;
  import java.util.HashMap;
  import java.util.Map;
  
  
  // evaluation information start
  // real case = true
  // evaluation item = 完整度->单应用跟踪完整度->函数和方法调用->库函数调用
  // scene introduction = Serializable接口
  // level = 2+
  // bind_url = completeness/single_app_tracing/function_call/library_function/CallExpression_CustomCode_Interface_function_001_T
  // evaluation information end
  @RestController()
  @RequestMapping("completeness/single_app_tracing/function_call/library_function")
  public class CallExpression_CustomCode_Interface_function_001_T {
      @PostMapping(value = "CallExpression_CustomCode_Interface_function_001_T")
      public Map<String, Object> testcase(@PathVariable String cmd) {
          Map<String, Object> modelMap = new HashMap<>();
          S s1 = new S(cmd);
          try {
              ByteArrayOutputStream out = new ByteArrayOutputStream();
              ObjectOutputStream oos = new ObjectOutputStream(out);
              oos.writeObject(s1);
              byte[] bytes = out.toByteArray();
              ByteArrayInputStream in = new ByteArrayInputStream(bytes);
              ObjectInputStream iis = new ObjectInputStream(in);
              S s2 = (S) iis.readObject();
              oos.close();
              iis.close();
              Runtime.getRuntime().exec(s2.s);
              modelMap.put("status", "success");
          } catch (Exception e) {
              modelMap.put("status", "error");
          }
          return modelMap;
      }
  
      private static class S implements Serializable {
  
          public String s;
  
          public S(String s) {
              this.s = s;
          }
      }
  }
  