@Test
public final void testWriteFileContentToResponseShouldNotReplaceNewLineWhenNotOnWindows() throws IOException {

    // GIVEN
    given(messageFileReader.readFile("filename", path)).willReturn(fileInputStream);
    given(request.getParameter("source")).willReturn("");
    given(request.getHeader("User-Agent")).willReturn("mac");
    String fileContent = "multi\nline";
    given(inputStreamConverter.toString(fileInputStream)).willReturn(fileContent);
    // WHEN
    underTest.writeFileContentToResponse(request, response, "/filename", path);
    // THEN
    verify(printWriter).write(fileContent);
}