CircuitInterface implements Serializable { public List<Port> getPorts() { return ports; } CircuitInterface();  CircuitInterface(String name);  CircuitInterface(String name, Port port); String getName(); void setName(String name); boolean isName(String circuitName); void addAll(List<Port> collection); void add(Port port); Port getPort(String portName); List<Port> getPorts(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void getPorts() { List<Port> ports = ci.getPorts(); ports.add(new Port()); assertEquals(1, ci.getPorts().size()); }