public static void initialize(Class<?>... classes){
  HashSet<Class<?>> classSet=new HashSet<>(Arrays.asList(classes));
  MockitoFilter filter=new AllowSet(classSet);
  initialize(filter);
}

public static void initialize ( Class < ? > ... classes ) { HashSet < Class < ? > > classSet = new HashSet < > ( Arrays . asList ( classes ) ) ; MockitoFilter filter = new AllowSet ( classSet ) ; initialize ( filter ) ; }
registers the mockitocomponentfactory that will mock all spork components .
