### Question:
ContentManipulationLockService { public void createLockAll() { synchronized (CFGFILE_NAME) { List<String> locks = new ArrayList<>(); locks.add(API_ID_ALL); storeCurrentLocks(locks); } }  boolean isLockedForProvider(String providerName); List<String> getLockInfo(); boolean createLock(String providerName); void createLockAll(); boolean removeLock(String providerName); void removeLockAll(); static final String API_ID_ALL; }### Answer:
@SuppressWarnings("unchecked") @Test public void createLockAll() { ContentManipulationLockService tested = getTested(); Mockito.reset(tested.configService); Mockito.doAnswer(new StoreValidationgAnswer(ContentManipulationLockService.API_ID_ALL)).when(tested.configService) .create(Mockito.eq(ContentManipulationLockService.CFGFILE_NAME), Mockito.anyMap()); tested.createLockAll(); Mockito.verify(tested.configService).create(Mockito.eq(ContentManipulationLockService.CFGFILE_NAME), Mockito.anyMap()); Mockito.verifyNoMoreInteractions(tested.configService); }