### Question:
MultipartPart implements Closeable { protected void visitTransferEncodingHeader(PartVisitor visitor) { String transferEncoding = part.getTransferEncoding(); if (transferEncoding != null) { visitor.withBytes(CRLF_BYTES); visitor.withBytes(CONTENT_TRANSFER_ENCODING_BYTES); visitor.withBytes(transferEncoding.getBytes(US_ASCII)); } } MultipartPart(T part, byte[] boundary); long length(); MultipartState getState(); boolean isTargetSlow(); long transferTo(ByteBuf target); long transferTo(WritableByteChannel target); @Override void close();  }### Answer:
@Test public void testVisitTransferEncodingHeader() { TestFileLikePart fileLikePart = new TestFileLikePart(null, null, null, null, "transferEncoding"); try (TestMultipartPart multipartPart = new TestMultipartPart(fileLikePart, new byte[0])) { CounterPartVisitor counterVisitor = new CounterPartVisitor(); multipartPart.visitTransferEncodingHeader(counterVisitor); assertEquals(counterVisitor.getCount(), 45, "CounterPartVisitor count for visitTransferEncodingHeader should be equal to " + "CRLF_BYTES length + CONTENT_TRANSFER_ENCODING_BYTES length + transferEncoding length"); } }