public void testListAllowedDatacenters() {
    List<Datacenter> allowed = enterprise.listAllowedDatacenters();

    assertNotNull(allowed);
    assertFalse(allowed.isEmpty());
    assertEquals(allowed.get(0).getId(), env.datacenter.getId());
  }
  @AfterClass
  public void tearDownEnterprise() {
    enterprise.prohibitDatacenter(env.datacenter);

    try {
      // If a datacenter is not allowed, the limits for it can not be
      // retrieved
      env.enterpriseApi.getLimits(enterprise.unwrap(), env.datacenter.unwrap());
    } catch (AbiquoException ex) {
      assertHasError(ex, Status.CONFLICT, "ENTERPRISE-10");
    }

    List<Datacenter> allowed = enterprise.listAllowedDatacenters();
    assertNotNull(allowed);
    assertTrue(allowed.isEmpty());

    enterprise.delete();
  }