PcapIf implements Cloneable { @Override public String toString() { return new StringBuilder(500) .append("PcapIf{name='").append(this.name) .append(", description='").append(this.description) .append(", addresses=").append(this.addresses) .append(", flags=").append(this.flags) .append('}') .toString(); } protected  PcapIf(); protected  PcapIf(String name, String description, List<PcapAddr> addresses, int flags); static PcapIf newInstance(); String getName(); String getDescription(); int getFlags(); List<PcapAddr> getAddresses(); boolean isLoopback(); boolean isUp(); boolean isRunning(); @Override boolean equals(final Object o); @Override int hashCode(); @Override PcapIf clone(); @Override String toString();  }
@Test @Override public void toStringTest() { PcapIf pcapIf = new PcapIf("en0", "Ethernet 0", new ArrayList<PcapAddr>(), 10); assert !pcapIf.toString().equals(""); }