@Test
void shouldShowIssueWithForensics() {

    Report report = new Report();
    Issue issue = createIssue(1);
    report.add(issue);
    RepositoryStatistics statistics = mock(RepositoryStatistics.class);
    FileStatistics fileStatistics = mock(FileStatistics.class);
    when(fileStatistics.getNumberOfAuthors()).thenReturn(15);
    when(fileStatistics.getNumberOfCommits()).thenReturn(20);
    when(fileStatistics.getLastModificationTime()).thenReturn(25);
    when(fileStatistics.getCreationTime()).thenReturn(30);
    when(statistics.get(FILE_NAME)).thenReturn(fileStatistics);
    when(statistics.contains(FILE_NAME)).thenReturn(true);
    ForensicsModel model = createModel(report, statistics);
    ForensicsRow actualRow = model.getRow(issue);
    assertThat(actualRow).hasDescription(EXPECTED_DESCRIPTION)
            .hasAge("1")
            .hasAuthorsSize("15")
            .hasCommitsSize("20")
            .hasModifiedAt(25)
            .hasAddedAt(30);
    assertThatDetailedColumnContains(actualRow.getFileName(),
            createExpectedFileName(issue), "/path/to/file-1:0000015");
}