### Question:
ConnectableNode { public int size() { return nodes.size(); } ConnectableNode(Node... nodes);  ConnectableNode(Collection<Node> nodes); boolean isConnectable(ConnectableNode node); boolean contains(Node node); int size(); Iterator<Node> getNodesIterator();  }### Answer:
@Test public void testSize() throws Exception { ConnectableNode node1 = new ConnectableNode(TestUtils.getNode(1), TestUtils.getNode(2)); assertEquals(2, node1.size()); ConnectableNode node2 = new ConnectableNode(TestUtils.asNodes(1, 2, 3, 4)); assertEquals(4, node2.size()); }