this.validateXmlHasNoPackageNames(resourceResponse);
}
@Test
public void testScheduledServiceAdvancedResource() {
ScheduledServiceAdvancedResource resource = new ScheduledServiceAdvancedResource();
resource.setId("Id");
resource.setSchedule("advanced");
resource.setTypeId("TypeId");
resource.setAlertEmail("foo@bar.org");
resource.setName("Name");
resource.setEnabled(true);
resource.setCronCommand("cronCommand");
ScheduledServicePropertyResource prop1 = new ScheduledServicePropertyResource();
prop1.setKey("id1");
prop1.setValue("value1");
resource.addProperty(prop1);
ScheduledServicePropertyResource prop2 = new ScheduledServicePropertyResource();
prop2.setKey("id2");
prop2.setValue("value2");
resource.addProperty(prop2);
ScheduledServiceResourceResponse resourceResponse = new ScheduledServiceResourceResponse();
resourceResponse.setData(resource);
this.marshalUnmarchalThenCompare(resourceResponse);