### Question:
STSPolicy { public STSPolicy() { } STSPolicy(); void addScope(List<Scope> scopes); void addScope(Scope scope); @Override String toString();  }### Answer:
@Test public void testSTSPolicy() { STSPolicy stsPolicy = new STSPolicy(); Scope scope = new Scope("name/cos:PutObject", "test-1250000000", "ap-guangzhou", "/test.txt"); stsPolicy.addScope(scope); JSONObject jsonObject = new JSONObject(stsPolicy.toString()); System.out.println(jsonObject.toString(4)); }