@Test
public void getById_maps_all_the_fields_except_the_data() {
db.prepareDbUnit(getClass(), "one_analysis_report.xml");
AnalysisReportDto report = sut.getById(session, 1L);
assertThat(report.getProjectKey()).isEqualTo(DEFAULT_PROJECT_KEY);
assertThat(report.getCreatedAt()).isEqualTo(DateUtils.parseDate("2014-09-24"));
assertThat(report.getUpdatedAt()).isEqualTo(DateUtils.parseDate("2014-09-25"));
assertThat(report.getStartedAt()).isEqualTo(DateUtils.parseDate("2014-09-26"));
assertThat(report.getFinishedAt()).isEqualTo(DateUtils.parseDate("2014-09-27"));
assertThat(report.getStatus()).isEqualTo(WORKING);
assertThat(report.getData()).isNull();
assertThat(report.getKey()).isEqualTo("1");
}