### Question:
SnappyCompressionProvider implements ICompressionProvider { @Override public SnappyCompressionInputStream createInputStream( InputStream in ) throws IOException { return new SnappyCompressionInputStream( in, this ); }  @Override SnappyCompressionInputStream createInputStream( InputStream in ); @Override boolean supportsInput(); @Override SnappyCompressionOutputStream createOutputStream( OutputStream out ); @Override boolean supportsOutput(); @Override String getDescription(); @Override String getName(); @Override String getDefaultExtension();  }### Answer:
@Test public void testCreateInputStream() throws IOException { SnappyCompressionProvider provider = (SnappyCompressionProvider) factory.getCompressionProviderByName( PROVIDER_NAME ); SnappyInputStream in = createSnappyInputStream(); SnappyCompressionInputStream inStream = new SnappyCompressionInputStream( in, provider ); assertNotNull( inStream ); SnappyCompressionInputStream ncis = provider.createInputStream( in ); assertNotNull( ncis ); }