### Question:
AddResponseProtocolOp extends ProtocolOp { @Override public byte getType() { return OP_TYPE_ADD_RESPONSE; } AddResponseProtocolOp(int resultCode);  AddResponseProtocolOp(int resultCode, LocalizableMessage errorMessage);  AddResponseProtocolOp(int resultCode, LocalizableMessage errorMessage,
                               DN matchedDN, List<String> referralURLs); int getResultCode(); LocalizableMessage getErrorMessage(); DN getMatchedDN(); List<String> getReferralURLs(); @Override byte getType(); @Override String getProtocolOpName(); @Override void write(ASN1Writer stream); @Override void toString(StringBuilder buffer); @Override void toString(StringBuilder buffer, int indent);  }### Answer:
@Test public void testOpType() throws Exception { AddResponseProtocolOp addResponse = new AddResponseProtocolOp(resultCode); assertEquals(addResponse.getType(), OP_TYPE_ADD_RESPONSE); }