#fixed code
                                @Test
    public void testBasics() throws TaskException, IOException {
        withSource("pdf/unoptimized.pdf");
        victim.execute(parameters);
        assertThat(sizeOfResult(), is(lessThan(104L)));
    }
#vulnerable code 
                                @Test
    public void testBasics() throws TaskException, IOException {
        parameters.setOutput(new DirectoryTaskOutput(outputFolder));
        victim.execute(parameters);
        long sizeInKb = outputFolder.listFiles()[0].length() / 1000;
        assertThat(sizeInKb, is(lessThan(104L)));
    } 
                            #location 5 
                            #vulnerability type NULL_DEREFERENCE