boolean isContentTypeMatch(HttpServletRequest request, MockData mock) { String mockContentType = mock.getRequestMediaType(); if (mockContentType != null) { MediaType requestContentType = getContentType(request).orElse(MediaType.ALL); return MediaType.parseMediaType(mockContentType).includes(requestContentType); } return true; }