@@ -0,0 +1,1456 @@
+package com.fasterxml.jackson.databind.node;%0A%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.StringReader;%0A%0Aimport com.fasterxml.jackson.databind.*;%0A%0A/**%0A * Tests to verify handling of empty content with %22readTree()%22%0A */%0Apublic class EmptyContentAsTreeTest extends BaseMapTest%0A%7B%0A    private final ObjectMapper MAPPER = objectMapper();%0A%0A    // %5Bdatabind#1406%5D: when passing %60JsonParser%60, indicate lack of content%0A    // by returning %60null%60%0A%0A    public void testNullFromEOFWithParser() throws Exception%0A    %7B%0A        assertNull(MAPPER.readTree(new StringReader(%22%22)));%0A        assertNull(MAPPER.readTree(new ByteArrayInputStream(new byte%5B0%5D)));%0A    %7D%0A%0A    // %5Bdatabind#1406%5D%0A    public void testNullFromEOFWithParserViaReader() throws Exception%0A    %7B%0A        assertNull(MAPPER.readTree(new StringReader(%22%22)));%0A        assertNull(MAPPER.readTree(new ByteArrayInputStream(new byte%5B0%5D)));%0A        assertNull(MAPPER.readerFor(JsonNode.class)%0A                .readTree(new StringReader(%22%22)));%0A        assertNull(MAPPER.readerFor(JsonNode.class)%0A                .readTree(new ByteArrayInputStream(new byte%5B0%5D)));%0A    %7D%0A%0A    // %5Bdatabind#2211%5D: when passing content sources OTHER than %60JsonParser%60,%0A    // return %22missing node%22 instead of alternate (return %60null%60, throw exception).%0A    public void testMissingNodeForEOFOther() throws Exception%0A    %7B%0A        %0A    %7D%0A%0A    public void testMissingNodeForEOFOtherViaReader() throws Exception%0A    %7B%0A        %0A    %7D%0A%7D%0A

test refactoring