@Test public void shouldGetMasterColumnListForRnR() { List<RnrColumn> allColumns = new ArrayList<>(); when(rnrTemplateService.fetchAllRnRColumns(existingProgramId)).thenReturn(allColumns); RnrTemplateForm rnrColumns = rnrTemplateController.fetchAllProgramRnrColumnList(existingProgramId); verify(rnrTemplateService).fetchAllRnRColumns(existingProgramId); assertThat(rnrColumns.getRnrColumns(), is(allColumns)); }