@Test(expected = UncheckedIOException.class) public void whenExternalResource() { StreamProviderFactory streamProviderFactory = new FileStreamProviderFactory( DataFormat.JSON ); streamProviderFactory.newInputStreamProvider("in.txt").getInputStream(); }
@Override public InputStreamProvider newInputStreamProvider(String target) { return this.delegateToFactory(target, StreamProviderFactory::newInputStreamProvider); }
FileStreamProviderFactory implements StreamProviderFactory { @Override public InputStreamProvider newInputStreamProvider(String target) { return this.delegateToFactory(target, StreamProviderFactory::newInputStreamProvider); } }
FileStreamProviderFactory implements StreamProviderFactory { @Override public InputStreamProvider newInputStreamProvider(String target) { return this.delegateToFactory(target, StreamProviderFactory::newInputStreamProvider); }  }
FileStreamProviderFactory implements StreamProviderFactory { @Override public InputStreamProvider newInputStreamProvider(String target) { return this.delegateToFactory(target, StreamProviderFactory::newInputStreamProvider); }  @Override InputStreamProvider newInputStreamProvider(String target); @Override OutputStreamProvider newOutputStreamProvider(String target); }
FileStreamProviderFactory implements StreamProviderFactory { @Override public InputStreamProvider newInputStreamProvider(String target) { return this.delegateToFactory(target, StreamProviderFactory::newInputStreamProvider); }  @Override InputStreamProvider newInputStreamProvider(String target); @Override OutputStreamProvider newOutputStreamProvider(String target);  }