### Question:
TransactionalPermissionsService implements PermissionsService { @Override public GroupsPermissions<GeneralPermission> getPermissionsMapFor(Component component) { return permissionManager.getPermissionsMapFor(component); } 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 testGetPermissionsMapFor() { Component component = mock(Component.class); when(permissionManager.getPermissionsMapFor(component)).thenReturn(new GroupsPermissions<GeneralPermission>()); assertNotNull(permissionsService.getPermissionsMapFor(component)); }