PcapPktHdr implements Cloneable { @Override public String toString() { return new StringBuilder(94) .append("PcapPktHdr{caplen=").append(this.caplen) .append(", len=").append(this.len) .append(", tv_sec=").append(this.tv_sec) .append(", tv_usec=").append(this.tv_usec) .append('}') .toString(); } PcapPktHdr();  PcapPktHdr(final int caplen, final int len, final int tvSec, final long tvUsec); static PcapPktHdr newInstance(final int caplen, final int len, final int tvSec, final long tvUsec); int getCapLen(); int getLen(); int getTvSec(); long getTvUsec(); @Override boolean equals(final Object o); @Override int hashCode(); @Override PcapPktHdr clone(); PcapPktHdr copy(); @Override String toString();  }
@Test @Override public void toStringTest() { PcapPktHdr pktHdr = new PcapPktHdr(50, 60, 1000, 2000L); assert !pktHdr.toString().equals(""); }