when(context.getMeasures((MeasuresFilter) anyObject())).thenReturn(
Arrays.<Measure> asList(newMeasure(CoreMetrics.LINES, Metric.Level.OK, "Message1"),
newMeasure(CoreMetrics.COVERAGE, Metric.Level.WARN, "Coverage<80"),
newMeasure(CoreMetrics.CLASS_COMPLEXITY, Metric.Level.ERROR, "Complexity>20")));
List<Issue> issues = new ArrayList<Issue>();
Issue issue = mock(Issue.class);
when(issue.isNew()).thenReturn(false);
issues.add(issue);
when(projectIssues.issues()).thenReturn(issues);
SonarAnalysisResult result = sonarResultEvaluator.getResult(context, ADDRESS);