CircuitInterface implements Serializable { public boolean isName(String circuitName) { return StringUtils.equalsIgnoreCase(this.name, circuitName); } 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 isName() { assertTrue(ci.isName(null)); ci.setName("name"); assertFalse(ci.isName(null)); assertTrue(ci.isName("name")); assertTrue(ci.isName("NAME")); }