### Question:
RestAuthNameCallbackHandler extends AbstractRestAuthCallbackHandler<NameCallback> { public NameCallback handle(HttpServletRequest request, HttpServletResponse response, JsonValue postBody, NameCallback originalCallback) { return originalCallback; }  String getCallbackClassName(); NameCallback handle(HttpServletRequest request, HttpServletResponse response,
            JsonValue postBody, NameCallback originalCallback); JsonValue convertToJson(NameCallback callback, int index); NameCallback convertFromJson(NameCallback callback, JsonValue jsonCallback);  }### Answer:
@Test public void shouldHandleCallback() { HttpServletRequest request = mock(HttpServletRequest.class); HttpServletResponse response = mock(HttpServletResponse.class); JsonValue jsonPostBody = mock(JsonValue.class); NameCallback originalNameCallback = mock(NameCallback.class); NameCallback nameCallback = restAuthNameCallbackHandler.handle(request, response, jsonPostBody, originalNameCallback); assertEquals(originalNameCallback, nameCallback); }