+ TestKit.shutdownActorSystem(ACTOR_SYSTEM, true);
+ }
+
+ void setupMockFiledBackedStream(final FileBackedOutputStream mockOutputStream) throws IOException {
+ doNothing().when(mockOutputStream).write(any(byte[].class), anyInt(), anyInt());
+ doNothing().when(mockOutputStream).write(any(byte[].class));
+ doNothing().when(mockOutputStream).write(anyInt());
+ doNothing().when(mockOutputStream).close();
+ doNothing().when(mockOutputStream).cleanup();
+ doNothing().when(mockOutputStream).flush();
+ doReturn(mockByteSource).when(mockOutputStream).asByteSource();