### Question:
TransactionalPermissionsService implements PermissionsService { @Override public GroupsPermissions<ProfilePermission> getPersonalPermissions(List<Group> groups) { return permissionManager.getPermissionsMapFor(groups); } TransactionalPermissionsService(PermissionManager permissionManager); @Override void changeGrants(PoulpeBranch branch, PermissionChanges changes); @Override void changeRestrictions(PoulpeBranch branch, PermissionChanges changes); @Override GroupsPermissions<GeneralPermission> getPermissionsMapFor(Component component); @Override void changeGrants(Component component, PermissionChanges changes); @Override void changeRestrictions(Component component, PermissionChanges changes); @Override GroupsPermissions<ProfilePermission> getPersonalPermissions(List<Group> groups); @Override void changeGrants(Group group, PermissionChanges changes); @Override void changeRestrictions(Group group, PermissionChanges changes);  }### Answer:
@Test public void testGetPersonalPermissions() { List<Group> groups = mock(List.class); when(permissionManager.getPermissionsMapFor(groups)).thenReturn(new GroupsPermissions<ProfilePermission>()); assertNotNull(permissionsService.getPersonalPermissions(groups)); }