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