def test_sign_part_with_entitlements(self, run_command,
                                         linker_signed_arm64_needs_force):
        part = model.CodeSignedProduct(
            'Test.app',
            'test.signing.app',
            entitlements='entitlements.plist',
            identifier_requirement=False)
        signing.sign_part(self.paths, self.config, part)
        run_command.assert_called_once_with([
            'codesign', '--sign', '[IDENTITY]', '--timestamp', '--entitlements',
            '/$W/entitlements.plist', '/$W/Test.app'
        ])