public void testIgnoreTypeTagsTopLevel () throws YamlException {
		// We are parsing this document that was output by another program using YamlBeans, that includes
		// a type tag for a class that we don't have on our classpath.
		String input = "!com.example.not.on.classpath.Fish\n" + //
				"species: Walleye\n" + //
				"weight: 24";
	
		try {
			new YamlReader(input).read(Map.class);
			fail("A type tag with an unknown class fails to parse, even if we ask for it as a simple Map.");
		} catch (YamlException e) {
			// Expected behavior.
		}
		
		// If we ignore type tags, the type tag in the document does not override our request for a Map.
		Map<?, ?> map = new TypeTagIgnoringReader(input).read(Map.class);
		assertEquals("Walleye", map.get("species"));		
	}