### Question:
CSeqField extends RtspHeader.Field { public static CSeqField parse(String fieldValue) throws ParseException { int cseq; try { cseq = Integer.parseInt(fieldValue); } catch (Exception ex) { throw (ParseException) new ParseException("not a valid content-length field", 0).initCause(ex); } return new CSeqField(cseq); } CSeqField(int cseq); int getCseq(); void setCseq(int cseq); @Override String getValueText(); @Override CSeqField clone(); static CSeqField parse(String fieldValue);  }### Answer:
@Test public void testParse() throws ParseException { System.out.println("RTSP message CSeq field parse test..."); String[] cseqs = new String[] { "CSeq:100", "CSeq: 100", "cseq: 100", "CSeq: test", }; int i = 0; CSeqField cseq; for (; i < 3; i++) { cseq = (CSeqField)RtspHeader.Field.parse(cseqs[i]); assertEquals(100, cseq.getCseq()); } for (; i < cseqs.length; i++) { try { RtspHeader.Field.parse(cseqs[i]); fail("CSeq field: \"" + cseqs[i] + "\" parsed without an exception"); } catch (ParseException ex) { } } }