ExportController { public ResponseEntity<byte[]> dateGraph( @RequestParam(DATA_PARAM) final String rawData ) throws IOException, TemplateLoadException, E { final DategraphData data = objectMapper.readValue(rawData, DategraphData.class); return writeDataToOutputStream(outputStream -> getVisualDataExportService().dateGraph(outputStream, data), DATE_GRAPH_EXPORT_FILE_NAME); } protected  ExportController(final RequestMapper<R> requestMapper,
                               final ControllerUtils controllerUtils,
                               final ExportServiceFactory<R, E> exportServiceFactory); @ResponseBody ResponseEntity<byte[]> exportQueryResults(
            @RequestParam(QUERY_REQUEST_PARAM) final String queryRequestJSON,
            // required = false to prevent Spring errors if the user asks for a CSV with no fields marked for exportQueryResults.
            // The UI should not allow the User to send a request for a CSV with nothing in it.
            @RequestParam(value = SELECTED_EXPORT_FIELDS_PARAM, required = false) final Collection<String> selectedFieldNames
    ); @ExceptionHandler @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) ModelAndView handleException(
            final Exception e,
            final HttpServletRequest request,
            final ServletResponse response
    ); ResponseEntity<byte[]> topicMap(
            @RequestParam(DATA_PARAM) final String rawData
    ); ResponseEntity<byte[]> sunburst(
            @RequestParam(DATA_PARAM) final String rawData
    ); ResponseEntity<byte[]> table(
            @RequestParam(DATA_PARAM) final String rawData,
            @RequestParam(TITLE_PARAM) final String title
    ); ResponseEntity<byte[]> map(
            @RequestParam(DATA_PARAM) final String rawData,
            @RequestParam(TITLE_PARAM) final String title
    ); ResponseEntity<byte[]> list(
            @RequestParam(DATA_PARAM) final String rawData,
            @RequestParam(RESULTS_PARAM) final String results,
            @RequestParam(SORT_BY_PARAM) final String sortBy
    ); ResponseEntity<byte[]> dateGraph(
            @RequestParam(DATA_PARAM) final String rawData
    ); ResponseEntity<byte[]> report(
            @RequestParam(DATA_PARAM) final String rawData,
            @RequestParam(value = MULTI_PAGE_PARAM, defaultValue = "false") final boolean multiPage
    ); static final String EXPORT_PATH; static final String PPTX_PATH; }
@Test public void dateGraph() throws Exception { controller.dateGraph("{}"); verify(visualDataExportService).dateGraph(any(), any()); }