<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/java-properties-011.xml"
        name="java-properties-011.xml"
        expected="fail"
        code="cxerr:XC0001">
   <t:info xmlns:cxerr="http://xmlcalabash.com/ns/error">
      <t:title>java-properties-011</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2025-01-20</t:date>
            <t:author>
               <t:name>Norm Tovey-Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Created test.</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:cxerr="http://xmlcalabash.com/ns/error">
      <p>Tests that an atomic cannot be cast to Java properties.</p>
   </t:description>
   <t:pipeline xmlns:cxerr="http://xmlcalabash.com/ns/error">
      <p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
                      xmlns:ex="https://xmlcalabash.com/ns/examples"
                      xmlns:p="http://www.w3.org/ns/xproc"
                      xmlns:xs="http://www.w3.org/2001/XMLSchema"
                      exclude-inline-prefixes="ex xs cx"
                      name="main"
                      version="3.0">
         <p:output port="result"/>
         <p:cast-content-type content-type="text/x-java-properties">
            <p:with-input expand-text="false">
               <p:inline content-type="application/json">[1,2,3]</p:inline>
            </p:with-input>
         </p:cast-content-type>
      </p:declare-step>
   </t:pipeline>
</t:test>
