Code example for DeflaterInputStream

0
    /** 
     * @tests DeflaterInputStream#DeflaterInputStream(InputStream) 
     */ 
    public void testDeflaterInputStreamInputStream() { 
        // ok 
        new DeflaterInputStream(is);
        // fail 
        try { 
            new DeflaterInputStream(null);
            fail("should throw NullPointerException");
        } catch (NullPointerException e) {
            // expected 
        } 
    } 
 
    /** 
     * @tests DeflaterInputStream#DeflaterInputStream(InputStream,Deflater) 
     */ 
    public void testDeflaterInputStreamInputStreamDeflater() { 
        // ok 
        new DeflaterInputStream(is, new Deflater());