diff --git a/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/permission/RecordsManagementPermissionPostProcessorUnitTest.java b/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/permission/RecordsManagementPermissionPostProcessorUnitTest.java index db87c4a511..f0c25e9e96 100644 --- a/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/permission/RecordsManagementPermissionPostProcessorUnitTest.java +++ b/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/permission/RecordsManagementPermissionPostProcessorUnitTest.java @@ -152,7 +152,7 @@ public class RecordsManagementPermissionPostProcessorUnitTest PermissionReference childOne = mock(PermissionReference.class); when(childOne.getName()).thenReturn("Not this one"); PermissionReference childTwo = mock(PermissionReference.class); - when(childOne.getName()).thenReturn("This is the requested permission"); + when(childTwo.getName()).thenReturn("This is the requested permission"); PermissionReference childThree = mock(PermissionReference.class); when(childThree.getName()).thenReturn("Not this one either"); when(mockPermissionModel.getGranteePermissions(mockWritePropsPermRef)).thenReturn(Sets.newHashSet(childOne, childTwo, childThree));