### Question:
CommunityLocksFactory implements LocksFactory { @Override public Locks newInstance( Config config, Clock clock, ResourceType[] resourceTypes ) { return new CommunityLockManger( config, clock ); }  @Override Locks newInstance( Config config, Clock clock, ResourceType[] resourceTypes );  }### Answer:
@Test void createDifferentCommunityLockManagers() { CommunityLocksFactory factory = new CommunityLocksFactory(); Locks locks1 = factory.newInstance( Config.defaults(), Clocks.systemClock(), ResourceTypes.values() ); Locks locks2 = factory.newInstance( Config.defaults(), Clocks.systemClock(), ResourceTypes.values() ); assertNotSame( locks1, locks2 ); assertThat( locks1, instanceOf( CommunityLockManger.class ) ); assertThat( locks2, instanceOf( CommunityLockManger.class ) ); }