@Test
public void testSuccessfulUpload () throws IOException, ComponentConfigException, NoSuchAlgorithmException {

    String fileName = "consolecustomprocessor.tar";
    URL url  = classLoader.getResource(resourceDirectoryPrefix + fileName);
    String consoleCustomProcessorTarString = url.getFile();
    File consoleCustomProcessorTar = new File(consoleCustomProcessorTarString);
    FileUtils.copyFileToDirectory(consoleCustomProcessorTar, new File(uploadWatchDirectory), false);
    this.customProcessorUploadHandler.created(Paths.get(uploadWatchDirectory).resolve(fileName));
    new VerificationsInOrder() {{
        InputStream jarFileActual;
        CustomProcessorInfo actual;
        catalogService.addCustomProcessorInfoAsBundle(actual = withCapture(), jarFileActual = withCapture());
        times = 1;
        Assert.assertTrue(actual.getName().equals(customProcessorInfo.getName()));
        Assert.assertTrue(IOUtils.contentEquals(jarFileActual, jarFile));
    }};
}