DropService { String getDropName(Date uploadTime) { Calendar uploadCalendar = Calendar.getInstance(); uploadCalendar.setTime(uploadTime); Calendar currentWeek = Calendar.getInstance(); currentWeek.setTime(uploadTime); currentWeek.set(Calendar.WEEK_OF_YEAR, currentWeek.get(Calendar.WEEK_OF_YEAR) - dropServiceConfig.getDropNameWeekOffset()); return "Week " + currentWeek.get(Calendar.WEEK_OF_YEAR) + new SimpleDateFormat(" (EEEE) - dd MMMM YYYY - HH.mm.ss").format(uploadTime); }  Drop createDrop(Repository repository); @Pollable(expectedSubTaskNumber = 1, message = "Start the Drop export process") PollableFuture<Drop> startDropExportProcess(
            ExportDropConfig exportDropConfig,
            @InjectCurrentTask PollableTask currentTask); @Pollable(async = true, message = "Start importing drop", expectedSubTaskNumber = 1) PollableFuture importDrop(
            Long dropId,
            TMTextUnitVariant.Status importStatus,
            @InjectCurrentTask PollableTask currentTask); @Pollable(async = true, message = "Start canceling drop") PollableFuture<Drop> cancelDrop(Long dropId, @InjectCurrentTask PollableTask currentTask); @Transactional void completeDrop(Drop drop);  }
@Test public void testGetDropFolderName() { Calendar cal = Calendar.getInstance(); cal.set(2013, 0, 1, 0, 0, 0); assertEquals("Week 48 (Tuesday) - 01 January 2013 - 00.00.00", dropService.getDropName(cal.getTime())); cal.set(Calendar.WEEK_OF_YEAR, 6); assertEquals("Week 1 (Tuesday) - 05 February 2013 - 00.00.00", dropService.getDropName(cal.getTime())); }