private DependencyResolver<SourceFile> newMockSourceResolver() throws IOException {
    final DependencyResolver<SourceFile> result = mock(ManualParseSourceDependencyResolver.class);
    when(result.resolve(any(Set.class))).thenReturn(MOCK_RESOLVER_RESULT);
    when(result.resolve(any(SourceFile.class))).thenReturn(MOCK_RESOLVER_RESULT);

    return result;
  }
  private DependencyResolver<ClassFile> newMockBcelResolver() throws IOException {
    final DependencyResolver<ClassFile> result = mock(ClassFileDependencyResolver.class);
    when(result.resolve(any(Set.class))).thenReturn(MOCK_RESOLVER_RESULT);
    when(result.resolve(any(ClassFile.class))).thenReturn(MOCK_RESOLVER_RESULT);

    return result;
  }