### Question:
RegisteredMessage extends WampMessage { public static RegisteredMessage deserialize(JsonParser jp) throws IOException { jp.nextToken(); long request = jp.getLongValue(); jp.nextToken(); long registration = jp.getLongValue(); return new RegisteredMessage(request, registration); } RegisteredMessage(long requestId, long registrationId);  RegisteredMessage(RegisterMessage registerMessage, long registrationId); static RegisteredMessage deserialize(JsonParser jp); @Override void serialize(JsonGenerator generator); long getRequestId(); long getRegistrationId(); @Override String toString();  }### Answer:
@Test public void deserializeTest() throws IOException { String json = "[65, 25349185, 2103333224]"; RegisteredMessage registeredMessage = WampMessage.deserialize(getJsonFactory(), json.getBytes(StandardCharsets.UTF_8)); assertThat(registeredMessage.getCode()).isEqualTo(65); assertThat(registeredMessage.getRequestId()).isEqualTo(25349185L); assertThat(registeredMessage.getRegistrationId()).isEqualTo(2103333224L); }