proprot/tst/com/amazonaws/proprot/ProxyProtocolTest.java [307:323]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        protocol.setEnforcedSize(Optional.of(headerSize));

        Header header = createBaseHeader();

        // write
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        protocol.write(header, out);

        assertEquals(headerSize, out.toByteArray().length);

        // read
        ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
        Header header2 = protocol.read(in);
        assertTrue(header2.getTlvs().isEmpty());
    }

    @Test
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



proprot/tst/com/amazonaws/proprot/ProxyProtocolTest.java [329:345]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        protocol.setEnforcedSize(Optional.of(headerSize));

        Header header = createBaseHeader();

        // write
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        protocol.write(header, out);

        assertEquals(headerSize, out.toByteArray().length);

        // read
        ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
        Header header2 = protocol.read(in);
        assertTrue(header2.getTlvs().isEmpty());
    }

    @Test
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



