#vulnerable code 
                                @Before
    public void setup() {
        final Bytes out = new ByteBufferBytes(ByteBuffer.allocate(22));
        out.writeUTF(EXPECTED);
        output = out.flip().slice();
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                @Before
    public void setup() {
        final Bytes out =   ByteBufferBytes.wrap(ByteBuffer.allocate(22));
        out.writeUTF(EXPECTED);
        output = out.flip().slice();
    }