@Test
public void testGetLogFileContentWhenSourceIsTrueShouldNotSetContentDisposition() {

    //GIVEN
    String expectedBody = "content";
    String fileName = "something";
    given(logFileProvider.getLogContent(fileName)).willReturn(expectedBody);
    //WHEN
    ResponseEntity<String> result = underTest.getLogFileContent(fileName, true, NOT_IMPORTANT);
    //THEN
    assertEquals(MediaType.TEXT_PLAIN, result.getHeaders().getContentType());
    assertEquals(HttpStatus.OK, result.getStatusCode());
    assertNull(result.getHeaders().get(CONTENT_DISPOSITION));
    assertEquals(expectedBody, result.getBody());
}