### Question:
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);  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void whenOutputStreamToClasspath() { StreamProviderFactory streamProviderFactory = new FileStreamProviderFactory( DataFormat.JSON ); streamProviderFactory.newOutputStreamProvider("classpath:out.txt"); }