ExpandedNodeIdConversions { @Nullable static NodeId expandedNodeIdToNodeId(@Nonnull ExpandedNodeId e) { return e.local(new NamespaceTable()).orElse(null); } private  ExpandedNodeIdConversions();   }
@Test public void testExpandedNodeIdToNodeId() { assertNull( expandedNodeIdToNodeId( new ExpandedNodeId(ushort(0), Namespaces.OPC_UA, "foo", uint(2)))); NodeId nodeId = new NodeId(0, "bar"); assertEquals(expandedNodeIdToNodeId(nodeId.expanded()), nodeId); }