### Question:
RpcDeniedReply extends RpcReply { public RejectState getRejectState() { return rejectState; } RpcDeniedReply(int xid, ReplyState replyState,
      RejectState rejectState, Verifier verifier); static RpcDeniedReply read(int xid, ReplyState replyState, XDR xdr); RejectState getRejectState(); @Override String toString(); @Override XDR write(XDR xdr);  }### Answer:
@Test public void testConstructor() { RpcDeniedReply reply = new RpcDeniedReply(0, ReplyState.MSG_ACCEPTED, RejectState.AUTH_ERROR, new VerifierNone()); Assert.assertEquals(0, reply.getXid()); Assert.assertEquals(RpcMessage.Type.RPC_REPLY, reply.getMessageType()); Assert.assertEquals(ReplyState.MSG_ACCEPTED, reply.getState()); Assert.assertEquals(RejectState.AUTH_ERROR, reply.getRejectState()); }