Section sectionModerate = mock(Section.class);
when(sectionModerate.isPremoderated()).thenReturn(true);
Section sectionNotModerate = mock(Section.class);
when(sectionNotModerate.isPremoderated()).thenReturn(false);
SectionService sectionService = mock(SectionService.class);
when(sectionService.getSection(1)).thenReturn(sectionModerate);
when(sectionService.getSection(2)).thenReturn(sectionNotModerate);
permissionService.setSectionService(sectionService);
// проверка что данные в mock resultSet верные
assertTrue(resultSetModerateNew.getBoolean("moderate"));