### Question:
RadiusRequest { public synchronized String getRequestId() { if (this.requestId == null) { StringBuilder sb = new StringBuilder(UUID.randomUUID().toString()); requestId = sb.toString(); } return requestId; } RadiusRequest(Packet requestPacket); Packet getRequestPacket(); Attribute getAttribute(Class attributeType); String getUsername(); synchronized String getRequestId(); long getStartTimestampInMillis(); void setContextHolderKey(String cacheKey); String getContextHolderKey();  }### Answer:
@Test public void getRequestId() { AccessRequest packet = new AccessRequest((short) 1, mock(Authenticator.class)); RadiusRequest request = new RadiusRequest(packet); String reqId = request.getRequestId(); String reqId2 = request.getRequestId(); assertThat(reqId2).isEqualTo(reqId); }