### Question:
RestAuthRedirectCallbackHandler extends AbstractRestAuthCallbackHandler<RedirectCallback> { public RedirectCallback convertFromJson(RedirectCallback callback, JsonValue jsonCallback) throws RestAuthException { validateCallbackType(CALLBACK_NAME, jsonCallback); return callback; }  RedirectCallback handle(HttpServletRequest request, HttpServletResponse response,
            JsonValue postBody, RedirectCallback originalCallback); String getCallbackClassName(); JsonValue convertToJson(RedirectCallback callback, int index); RedirectCallback convertFromJson(RedirectCallback callback, JsonValue jsonCallback);  }### Answer:
@Test public void shouldFailToConvertFromJson() throws RestAuthException { RedirectCallback redirectCallback = mock(RedirectCallback.class); JsonValue jsonValue = json(object(field("type", "RedirectCallback"))); RedirectCallback redirectCb = restAuthRedirectCallbackHandler.convertFromJson(redirectCallback, jsonValue); assertThat(redirectCb).isEqualTo(redirectCallback); }