scheduledTask.setTypeId(UpdateIndexTaskDescriptor.ID);
ScheduledServicePropertyResource prop = new ScheduledServicePropertyResource();
prop.setKey("repositoryId");
prop.setValue("all_repo");
scheduledTask.addProperty(prop);
Assert.assertTrue("Expected task to be created: ", TaskScheduleUtil.create(scheduledTask).isSuccess());
// now check the conf
List<CScheduledTask> tasks = getNexusConfigUtil().getNexusConfig().getTasks();