HttpRedirect redirect = HttpRedirect.builder().zone(fqdn).fqdn(redirectName).code(302).keepUri(true).url("http://foo.com/").build();
String unknownRedirectName = "nodirect." + fqdn;
@Test
private void testCreatePublishZone() throws Exception {
Zone zone = api.getZoneApi().get(fqdn);
if (zone == null) {
Job job = api.getZoneApi().scheduleCreateWithContact(fqdn, contact);
checkNotNull(job, "unable to create zone %s", fqdn);
getAnonymousLogger().info("created zone: " + job);
assertEquals(job.getStatus(), Status.SUCCESS);