PhysicalNetworkAdapter { private InstanceIdentifier<NodeConnector> getOFPortInstanceIdentifier(NodeKey nodeKey, NodeConnectorKey connectorKey) { return InstanceIdentifier.builder(Nodes.class).child(Node.class, nodeKey).child(NodeConnector.class, connectorKey).build(); } PhysicalNetworkAdapter(DataBroker dataBroker
            , NotificationProviderService notificationProviderService
            , PhyConfigLoader phyConfigLoader
            , FlowUtils ofFlowUtils); void close(); PhyConfigLoader getPhyConfigLoader();  }
@Test public void testGetOFPortInstanceIdentifier() throws Exception{ Class<PhysicalNetworkAdapter> class1 = PhysicalNetworkAdapter.class; Method method = class1.getDeclaredMethod("getOFPortInstanceIdentifier", new Class[]{NodeKey.class,NodeConnectorKey.class}); method.setAccessible(true); NodeKey nodeKey = mock(NodeKey.class); NodeConnectorKey connectorKey = mock(NodeConnectorKey.class); InstanceIdentifier<NodeConnector> result; result = (InstanceIdentifier<NodeConnector>)method.invoke(physicalNetworkAdapter,nodeKey,connectorKey); Assert.assertTrue(result != null); }