public static boolean isNotBinaryType(final HttpHeaders headers) {
        return Optional.ofNullable(headers).map(HttpHeaders::getContentType)
                .map(contentType -> !BINARY_TYPE_LIST.contains(contentType.getType())
                        && !BINARY_TYPE_LIST.contains(contentType.getSubtype()))
                .orElse(true);
    }
@Test
    public void testIsNotBinaryType() {
        assertTrue(LogCollectUtils.isNotBinaryType(request.getHeaders()));
    }