@Mock
protected RequestMapper<R> requestMapper;
@Mock
protected ControllerUtils controllerUtils;
private ExportController<R, E> controller;
<BUG>protected abstract ExportController<R, E> constructController();

@Before
public void setUp() {
controller = constructController();</BUG>
}

@Mock
protected ExportService<R, E> exportService;
@Mock
protected RequestMapper<R> requestMapper;
@Mock
protected ControllerUtils controllerUtils;
private ExportController<R, E> controller;
protected abstract ExportController<R, E> constructController() throws IOException;
protected abstract void mockNumberOfResults(int numberOfResults) throws E;
@Before
public void setUp() throws IOException {
controller = constructController();
}
