@Test
public void issueSYNCOPE258() {
// -----------------------------
// Add a custom correlation rule
// -----------------------------
SyncPolicyTO policyTO = policyService.read(PolicyType.SYNC, 9L);
policyTO.getSpecification().setUserJavaRule(TestSyncRule.class.getName());
policyService.update(PolicyType.SYNC, policyTO.getId(), policyTO);
// -----------------------------
SyncTaskTO task = new SyncTaskTO();
task.setName("Test Sync Rule");
task.setResource(RESOURCE_NAME_WS2);