### Question:
SubscriptionRequestMapper { public PrivateUnsubscribeRequest mapPrivateUnsubscribeRequest( final JsonRpcRequestContext jsonRpcRequestContext) throws InvalidSubscriptionRequestException { try { final WebSocketRpcRequest webSocketRpcRequestBody = validateRequest(jsonRpcRequestContext); final String privacyGroupId = webSocketRpcRequestBody.getRequiredParameter(0, String.class); final long subscriptionId = webSocketRpcRequestBody.getRequiredParameter(1, UnsignedLongParameter.class).getValue(); return new PrivateUnsubscribeRequest( subscriptionId, webSocketRpcRequestBody.getConnectionId(), privacyGroupId); } catch (final Exception e) { throw new InvalidSubscriptionRequestException("Error parsing unsubscribe request", e); } } SubscriptionRequestMapper(); SubscribeRequest mapSubscribeRequest(final JsonRpcRequestContext jsonRpcRequestContext); UnsubscribeRequest mapUnsubscribeRequest(final JsonRpcRequestContext jsonRpcRequestContext); PrivateSubscribeRequest mapPrivateSubscribeRequest(
      final JsonRpcRequestContext jsonRpcRequestContext, final String enclavePublicKey); PrivateUnsubscribeRequest mapPrivateUnsubscribeRequest(
      final JsonRpcRequestContext jsonRpcRequestContext);  }### Answer:
@Test public void mapRequestToPrivateUnsubscribeRequest() { final JsonRpcRequest jsonRpcRequest = parseWebSocketRpcRequest( "{\"id\": 1, \"method\": \"priv_unsubscribe\", \"params\": [\"B1aVtMxLCUHmBVHXoZzzBgPbW/wj5axDpW9X8l91SGo=\", \"0x1\"]}"); final PrivateUnsubscribeRequest expectedUnsubscribeRequest = new PrivateUnsubscribeRequest( 1L, CONNECTION_ID, "B1aVtMxLCUHmBVHXoZzzBgPbW/wj5axDpW9X8l91SGo="); final PrivateUnsubscribeRequest unsubscribeRequest = mapper.mapPrivateUnsubscribeRequest(new JsonRpcRequestContext(jsonRpcRequest)); assertThat(unsubscribeRequest).isEqualTo(expectedUnsubscribeRequest); }