public Asn1ObjectInputStream next() {
        return new Asn1ObjectInputStream(this);
    }
@Test
    public void nextShouldThrowExceptionIfAtEnd() throws IOException {
        thrown.expect(Asn1Exception.class);
        thrown.expectMessage("Read beyond bound 0 >= 0");
        read(new byte[0], false, (i) -> i.next());
    }