public void testhandleCodeCoverageWarnings_clearsMarkersBeforeProceeding() throws Exception {
    ProjectService service = spy(new ProjectService());
    IProject project = mock(IProject.class);
    ProjectPackageList projectPackageList = mock(ProjectPackageList.class);
    RunTestsResultExt runTestHandler = mock(RunTestsResultExt.class);

    when(projectPackageList.getProject()).thenReturn(project);

    service.handleCodeCoverageWarnings(
        projectPackageList, runTestHandler, new NullProgressMonitor());

    verify(service, times(1)).clearAllWarningMarkers(project);
  }
 public void testhandleCodeCoverageWarnings_NullRunTestResultHandler() throws Exception {
   ProjectService service = new ProjectService();
   ProjectPackageList projectPackageList = mock(ProjectPackageList.class);
   service.handleCodeCoverageWarnings(projectPackageList, null, new NullProgressMonitor());
 }