assertNull(node.get("namespaces"));
assertEquals("{ns}stringField", node.get("recordFilter").get("field").getTextValue());
// Test serialization with namespace prefixes
byte[] dataWithPrefixes = JsonFormat.serializeAsBytes(
writer.toJson(scan, new WriteOptions(), repository));
JsonNode nodeWithPrefixes = new ObjectMapper().readTree(dataWithPrefixes);
assertNotNull(nodeWithPrefixes.get("namespaces"));
assertTrue(nodeWithPrefixes.get("recordFilter").get("field").getTextValue().endsWith("$stringField"));
}