GithubRepositoryService githubRepositoryService = mock(GithubRepositoryService.class);
DynamicBuildModel model = new DynamicBuildModel(dynamicBuild, githubRepositoryService);
model.run();
ArgumentCaptor<UnknownBuildCause> argument = ArgumentCaptor.forClass(UnknownBuildCause.class);
verify(dynamicBuild).addCause(argument.capture());
UnknownBuildCause buildCause = argument.getValue();
assertNotNull(buildCause);
}