@Test
public void testWriteResourceFileWhenFileDoesNotExistShouldWriteErrorResponse() throws IOException {

    //GIVEN
    given(fileReader.readFile(FILE_NAME, path)).willReturn(null);
    given(response.getWriter()).willReturn(writer);
    //WHEN
    underTest.writeResourceFile(response, PATH_INFO, path);
    //THEN
    verify(response).setContentType(HTML);
    verify(writer).write(FILE_NOT_FOUND_MSG);
    verify(writer).flush();
    verify(writer).close();
}