### Question:
DeleteRequestProtocolOp extends ProtocolOp { public void write(ASN1Writer stream) throws IOException { stream.writeOctetString(OP_TYPE_DELETE_REQUEST, dn); } DeleteRequestProtocolOp(ByteString dn); ByteString getDN(); void write(ASN1Writer stream); byte getType(); String getProtocolOpName(); void toString(StringBuilder buffer); void toString(StringBuilder buffer, int indent);  }### Answer:
@Test(expectedExceptions = Exception.class) public void testNullEncodeDecode() throws Exception { ByteStringBuilder builder = new ByteStringBuilder(); ASN1Writer writer = ASN1.getWriter(builder); DeleteRequestProtocolOp deleteEncoded; deleteEncoded = new DeleteRequestProtocolOp(null); deleteEncoded.write(writer); ASN1Reader reader = ASN1.getReader(builder.toByteString()); LDAPReader.readProtocolOp(reader); }