@Test public void test_getGroups() { List<Group> groups = new ArrayList<>(); when(groupRepository.findForCriteria(any(GroupGetRequest.class))).thenReturn(groups); List<Group> result = groupService.getGroups(any(GroupGetRequest.class)); assertThat(result).isEqualTo(groups); }
public List<Group> getGroups(GroupGetRequest groupGetRequest) { return groupRepository.findForCriteria(groupGetRequest); }
GroupService { public List<Group> getGroups(GroupGetRequest groupGetRequest) { return groupRepository.findForCriteria(groupGetRequest); } }
GroupService { public List<Group> getGroups(GroupGetRequest groupGetRequest) { return groupRepository.findForCriteria(groupGetRequest); }  }
GroupService { public List<Group> getGroups(GroupGetRequest groupGetRequest) { return groupRepository.findForCriteria(groupGetRequest); }  List<Group> getGroups(GroupGetRequest groupGetRequest); }
GroupService { public List<Group> getGroups(GroupGetRequest groupGetRequest) { return groupRepository.findForCriteria(groupGetRequest); }  List<Group> getGroups(GroupGetRequest groupGetRequest);  }