### Question:
EditionLocksFactories { public static Locks createLockManager( LocksFactory locksFactory, Config config, Clock clock ) { return locksFactory.newInstance( config, clock, ResourceTypes.values() ); }  static Locks createLockManager( LocksFactory locksFactory, Config config, Clock clock ); static LocksFactory createLockFactory( Config config, LogService logging );  }### Answer:
@Test void createLocksForAllResourceTypes() { LocksFactory lockFactory = mock( LocksFactory.class ); Config config = Config.defaults(); Clock clock = Clocks.systemClock(); createLockManager( lockFactory, config, clock ); verify( lockFactory ).newInstance( eq( config ), eq( clock ), eq( ResourceTypes.values() ) ); }