### Question:
ConnectionField extends RtspHeader.Field { public static ConnectionField parse(String fieldValue) { ConnectionField result = new ConnectionField(); Matcher m = parsePattern.matcher(fieldValue); while (m.find()) result.addParam(m.group()); return result; } ConnectionField(); void addParam(String param); boolean containsParam(String param); void removeParam(String param); @Override String getValueText(); @Override ConnectionField clone(); static ConnectionField parse(String fieldValue);  }### Answer:
@Test public void testParse() throws ParseException { System.out.println("RTSP message Connection field parse test..."); String[] cfs = new String[] { "Connection:p1,p2", "Connection: p1,p2", "connection:p1,p2", }; int i = 0; ConnectionField cf; for (; i < cfs.length; i++) { cf = (ConnectionField)RtspHeader.Field.parse(cfs[i]); assertTrue(cf.containsParam("p1")); assertTrue(cf.containsParam("p2")); } }