UploadQuestionGroupController extends QuestionnaireController { public List<String> getAllCountriesForPPI() { return questionnaireServiceFacade.getAllCountriesForPPI(); } UploadQuestionGroupController();  UploadQuestionGroupController(QuestionnaireServiceFacade questionnaireServiceFacade); List<String> getAllCountriesForPPI(); String upload(UploadQuestionGroupForm uploadQuestionGroupForm, RequestContext requestContext);  }
@Test public void testGetAllCountriesForPPI() { List<String> countries = asList("India", "China", "Canada"); when(questionnaireServiceFacade.getAllCountriesForPPI()).thenReturn(countries); assertThat(controller.getAllCountriesForPPI(), is(countries)); }