Fix `binary` data passing via sysrepo and NETCONF

Change-Id: I1e30621fa9d1189efd964593e76f381c2cb3378d
diff --git a/tests/datastore_access.cpp b/tests/datastore_access.cpp
index a1c8906..51bcd81 100644
--- a/tests/datastore_access.cpp
+++ b/tests/datastore_access.cpp
@@ -348,6 +348,17 @@
         REQUIRE(datastore.getItems("/example-schema:beast") == expected);
     }
 
+    SECTION("binary")
+    {
+        datastore.setLeaf("/example-schema:blob", binary_{"cHduegByIQ=="s});
+        REQUIRE_CALL(mock, write("/example-schema:blob", std::nullopt, "cHduegByIQ=="s));
+        datastore.commitChanges();
+        DatastoreAccess::Tree expected {
+            {"/example-schema:blob", binary_{"cHduegByIQ=="s}},
+        };
+        REQUIRE(datastore.getItems("/example-schema:blob") == expected);
+    }
+
     SECTION("operational data")
     {
         MockDataSupplier mockOpsData;