InstanceIdentifierUtils { public static InstanceIdentifier<Node> generateNodeInstanceIdentifier(final NodeConnectorRef nodeConnectorRef) { return nodeConnectorRef.getValue().firstIdentifierOf(Node.class); } private  InstanceIdentifierUtils(); 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);  }
@Test public void testGenerateNodeInstanceIdentifier() throws Exception { NodeConnectorRef ncRef = new NodeConnectorRef( InstanceIdentifier.builder(Nodes.class).child(Node.class).child(NodeConnector.class).build()); assertNotNull(InstanceIdentifierUtils.generateNodeInstanceIdentifier(ncRef)); }