### Question:
DeleteRequestProtocolOp extends ProtocolOp { public void toString(StringBuilder buffer) { buffer.append("DeleteRequest(dn="); buffer.append(dn); buffer.append(")"); } 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 public void TestToStringSingleLine() throws Exception { DeleteRequestProtocolOp deleteRequest = new DeleteRequestProtocolOp(dn); assertEquals(deleteRequest.toString(), "DeleteRequest(dn=" + dn + ")"); }
@Test public void TestToStringMultiLine() throws Exception { DeleteRequestProtocolOp deleteRequest = new DeleteRequestProtocolOp(dn); StringBuilder buffer = new StringBuilder(); deleteRequest.toString(buffer, 3); assertEquals(buffer.toString(), " Delete Request" + EOL + " Entry DN: " + dn + EOL); }