+ assertEquals(NodeIdentifier.create(QName.create(ACTIONS_INTERFACES, "reset")), result.get(3));
+ }
+
+ /**
+ * Test of deserialization <code>String</code> URI with container containing choice node with Action to
+ * {@code Iterable<YangInstanceIdentifier.PathArgument>}.
+ */
+ @Test
+ public void deserializeContainerWithChoiceSchemaNodeWithActionTest() {
+ final var result = YangInstanceIdentifierDeserializer.create(SCHEMA_CONTEXT,
+ "example-actions:interfaces/typeA-gigabyte/interface=eth0/reboot");
+ assertEquals(6, result.size());
+
+ // container
+ assertEquals(NodeIdentifier.create(ACTIONS_INTERFACES), result.get(0));
+ // choice
+ assertEquals(NodeIdentifier.create(QName.create(ACTIONS_INTERFACES, "interface-type")), result.get(1));
+ // container
+ assertEquals(NodeIdentifier.create(QName.create(ACTIONS_INTERFACES, "typeA-gigabyte")), result.get(2));
+
+ // list
+ final QName list = QName.create(ACTIONS_INTERFACES, "interface");
+ assertEquals(NodeIdentifier.create(list), result.get(3));
+ assertEquals(NodeIdentifierWithPredicates.of(list, QName.create(list, "name"), "eth0"), result.get(4));
+
+ // action QName
+ assertEquals(NodeIdentifier.create(QName.create(ACTIONS_INTERFACES, "reboot")), result.get(5));
+ }
+
+ /**
+ * Test of deserialization <code>String</code> URI with container containing choice node with Action to
+ * {@code Iterable<YangInstanceIdentifier.PathArgument>}.
+ */
+ @Test
+ public void deserializeContainerWithChoiceCaseSchemaNodeWithActionTest() {
+ final var result = YangInstanceIdentifierDeserializer.create(SCHEMA_CONTEXT,
+ "example-actions:interfaces/udp/reboot");
+ assertEquals(4, result.size());
+ // container
+ assertEquals(NodeIdentifier.create(ACTIONS_INTERFACES), result.get(0));
+ // choice
+ assertEquals(NodeIdentifier.create(QName.create(ACTIONS_INTERFACES, "protocol")), result.get(1));
+ // choice container
+ assertEquals(NodeIdentifier.create(QName.create(ACTIONS_INTERFACES, "udp")), result.get(2));
+ // action QName
+ assertEquals(NodeIdentifier.create(QName.create(ACTIONS_INTERFACES, "reboot")), result.get(3));