### Question:
HotfolderManager { public void createAndSendTicket(AbbyyTicket abbyyTicket, String name) throws IOException, URISyntaxException { String ticketFileName = name + ".xml"; URI inputTicketUri = abbyyTicket.getRemoteInputUri(); OutputStream os = hotfolder.createTmpFile(ticketFileName); abbyyTicket.write(os); if (os != null) os.close(); hotfolder.copyTmpFile(ticketFileName, inputTicketUri); hotfolder.deleteTmpFile(ticketFileName); } HotfolderManager(String serverUrl, String user, String password);   HotfolderManager(Hotfolder initHotfolder); void deleteOutputs(List<OcrOutput> outputs); void deleteImages(List<OcrImage> images); void copyImagesToHotfolder(List<OcrImage> ocrImages); void retrieveResults(List<OcrOutput> ocrOutputs); void createAndSendTicket(AbbyyTicket abbyyTicket, String name); void waitForResults(long timeout, long waitInterval,
			List<OcrOutput> outputs, URI errorResultXmlUri); boolean enoughSpaceAvailable(long maxSpace, URI inputFolder,
		URI outputFolder, URI errorFolder); void deleteTicket(AbbyyTicket abbyyTicket); String readFromErrorFile(URI errorResultUri, String processName);  }### Answer:
@Test public void shouldSendTicket() throws URISyntaxException, IOException { AbbyyTicket ticketMock = mock(AbbyyTicket.class); when(ticketMock.getRemoteInputUri()).thenReturn(new URI("http: managerSut.createAndSendTicket(ticketMock, "ticket"); verify(hotfolderMock).copyTmpFile("ticket.xml", new URI("http: }