public void testCreateAndRestoreNewSnapshot() {
ImmutableSet<IScheduledTask> tasks = ImmutableSet.of(
IScheduledTask.build(new ScheduledTask().setStatus(ScheduleStatus.PENDING)));
Set<QuotaConfiguration> quotas =
ImmutableSet.of(
new QuotaConfiguration("steve", ResourceAggregates.none().newBuilder()));
IHostAttributes attribute = IHostAttributes.build(new HostAttributes("host",
ImmutableSet.of(new Attribute("attr", ImmutableSet.of("value")))));
StoredJob job = new StoredJob(
"jobManager",
new JobConfiguration().setKey(new JobKey("owner", "env", "name")));