### Question:
TransactionalPermissionsService implements PermissionsService { @Override public void changeRestrictions(PoulpeBranch branch, PermissionChanges changes) { permissionManager.changeRestrictions(branch, changes); } 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 testChangeRestrictions() { PermissionChanges changes = mock(PermissionChanges.class); Component component = mock(Component.class); permissionsService.changeRestrictions(component, changes); Group group = mock(Group.class); permissionsService.changeRestrictions(group, changes); }