public virtual void test_of_ByteSource_badEnd()
        {
            ByteSource source = ByteSource.wrap(SAMPLE_BAD_END.GetBytes(Encoding.UTF8));

            assertThrowsIllegalArg(() => XmlFile.of(source));
        }
        public virtual void test_of_ByteSource_parsedReferences_ioException()
        {
            ByteSource source = Files.asByteSource(new File("/oh-dear-no-such-file"));

            assertThrows(() => XmlFile.of(source, "key"), typeof(UncheckedIOException));
        }
        public virtual void test_of_ByteSource_mismatchedTags()
        {
            ByteSource source = ByteSource.wrap(SAMPLE_MISMATCHED_TAGS.GetBytes(Encoding.UTF8));

            assertThrowsIllegalArg(() => XmlFile.of(source));
        }