ResponseModifyingPreprocessors { public static OperationPreprocessor replaceBinaryContent() { return new ContentModifyingOperationPreprocessor(new BinaryReplacementContentModifier()); }  static OperationResponsePreprocessor shortenContent(ObjectMapper objectMapper); static OperationPreprocessor replaceBinaryContent(); static OperationPreprocessor replaceMultipartBinaryContent(); static OperationPreprocessor limitJsonArrayLength(ObjectMapper objectMapper);  }
@Test public void shouldShortenJpegAsBinary() { preprocessorTest(new TestData() .content("does not matter") .contentType(IMAGE_JPEG_VALUE) .preprocessor(ResponseModifyingPreprocessors.replaceBinaryContent()) .expectedResult("<binary>")); }
@Test public void shouldShortenPdfAsBinary() { preprocessorTest(new TestData() .content("does not matter") .contentType("application/pdf") .preprocessor(ResponseModifyingPreprocessors.replaceBinaryContent()) .expectedResult("<binary>")); }