AggregateDirContextProcessor implements DirContextProcessor { public void preProcess(DirContext ctx) throws NamingException { for (DirContextProcessor processor : dirContextProcessors) { processor.preProcess(ctx); } }  void addDirContextProcessor(DirContextProcessor processor); List<DirContextProcessor> getDirContextProcessors(); void setDirContextProcessors(List<DirContextProcessor> dirContextProcessors); void preProcess(DirContext ctx); void postProcess(DirContext ctx);  }
@Test public void testPreProcess() throws NamingException { tested.preProcess(null); verify(processor1Mock).preProcess(null); verify(processor2Mock).preProcess(null); }