InputStream inputStream = spy(new FileInputStream(source));
IInputStreamSource inputStreamSource = mock(IInputStreamSource.class);
when(inputStreamSource.getInputStream()).thenReturn(inputStream);
OutputStream outputStream = mock(OutputStream.class);
IInputStreamConsumer inputStreamConsumer = mock(IInputStreamConsumer.class);
doAnswer(new CloseStreamAnswer()).when(inputStreamConsumer).onComplete(any(InputStream.class));
assertTrue(getConverter().convert(inputStreamSource).as(validInputType()).to(inputStreamConsumer).as(validTargetType()).schedule().get());
assertTrue(source.exists());