@Test(dataProvider = "invalidAvailabilityZoneCreateSpecs")
    public void testInvalidAvailabilityZoneCreateSpec(
        AvailabilityZoneCreateSpec spec, String errorMsg) {
      ImmutableList<String> violations = validator.validate(spec);

      assertThat(violations.size(), is(1));
      assertThat(violations.get(0), startsWith(errorMsg));
    }
 @Test(dataProvider = "validAvailabilityZoneCreateSpecs")
 public void testValidAvailabilityZoneCreateSpec(AvailabilityZoneCreateSpec spec) {
   ImmutableList<String> violations = validator.validate(spec);
   assertThat(violations.isEmpty(), is(true));
 }