InstanceIdentifierUtils { public static InstanceIdentifier<NodeConnector> createNodeConnectorIdentifier(final String nodeIdValue, final String nodeConnectorIdValue) { return createNodePath(new NodeId(nodeIdValue)).child(NodeConnector.class, new NodeConnectorKey(new NodeConnectorId(nodeConnectorIdValue))); } private  InstanceIdentifierUtils(); static InstanceIdentifier<Node> createNodePath(final NodeId nodeId); static InstanceIdentifier<Node> getNodePath(final InstanceIdentifier<?> nodeChild); static InstanceIdentifier<Table> createTablePath(final InstanceIdentifier<Node> nodePath,
            final TableKey tableKey); static InstanceIdentifier<Flow> createFlowPath(final InstanceIdentifier<Table> table,
            final FlowKey flowKey); static Short getTableId(final InstanceIdentifier<Table> tablePath); static NodeConnectorKey getNodeConnectorKey(final InstanceIdentifier<?> nodeConnectorPath); static NodeKey getNodeKey(final InstanceIdentifier<?> nodePath); static InstanceIdentifier<NodeConnector> createNodeConnectorIdentifier(final String nodeIdValue,
            final String nodeConnectorIdValue); static InstanceIdentifier<Node> generateNodeInstanceIdentifier(final NodeConnectorRef nodeConnectorRef); static InstanceIdentifier<Table> generateFlowTableInstanceIdentifier(final NodeConnectorRef nodeConnectorRef,
            final TableKey flowTableKey); static InstanceIdentifier<Flow> generateFlowInstanceIdentifier(final NodeConnectorRef nodeConnectorRef,
            final TableKey flowTableKey, final FlowKey flowKey); static InstanceIdentifier<Topology> generateTopologyInstanceIdentifier(final String topologyId);  }
@Test public void testCreateNodeConnectorIdentifier() throws Exception { InstanceIdentifier<NodeConnector> ncInsId = InstanceIdentifierUtils.createNodeConnectorIdentifier(STR_ID_1, STR_ID_2); assertNotNull(ncInsId); assertEquals(STR_ID_1, ncInsId.firstKeyOf(Node.class, NodeKey.class).getId().getValue()); assertEquals(STR_ID_2, ncInsId.firstKeyOf(NodeConnector.class, NodeConnectorKey.class).getId().getValue()); }