@Test
public void runWithJunitTest() {

    List<Failure> failures = new ArrayList<>();
    List<Failure> failureDetails = new ArrayList<>();
    Path path = mock(Path.class);
    Result result = runWithJunit(path, fakeRunner, failures, failureDetails);
    assertFalse(result.wasSuccessful());
    assertEquals(1, failures.size());
    assertEquals(2, failureDetails.size());
    assertEquals("Test", failures.get(0).getMessage());
    assertEquals(path, failures.get(0).getPath());
}