### Question:
OutlookRecreatableCalendarServiceImpl implements OutlookRecreateableCalendarService { @Override @Transactional public AcmContainer clearFolderRecreatedFlag(String objectType, Long objectId) throws AcmObjectNotFoundException { AcmContainer container = containerDao.findFolderByObjectTypeAndId(objectType, objectId); container.setCalendarFolderRecreated(false); return container; }  @Override @Transactional AcmContainer clearFolderRecreatedFlag(String objectType, Long objectId); void setContainerDao(AcmContainerDao containerDao);  }### Answer:
@Test public void testClearFolderRecreatedFlag() throws Exception { when(mockedContainerDao.findFolderByObjectTypeAndId(any(String.class), any(long.class))).thenReturn(mockedContainer); ArgumentCaptor<Boolean> captor = ArgumentCaptor.forClass(Boolean.class); AcmContainer container = calendarService.clearFolderRecreatedFlag(OBJECT_TYPE, OBJECT_ID); verify(mockedContainerDao).findFolderByObjectTypeAndId(OBJECT_TYPE, 101L); verify(mockedContainer).setCalendarFolderRecreated(captor.capture()); assertThat(captor.getValue(), is(false)); assertThat(container.isCalendarFolderRecreated(), is(false)); }