/** Test the load method. */
  @Test
  public void testLoadNoTiers() throws Exception {

    Environment environment = new Environment();
    environment.setName(ENVIRONMENT_NAME);
    environment.setOrg(ORG);
    environment.setVdc("vdc");
    environment.setDescription("description");
    environment = environmentDao.create(environment);
    environment = environmentDao.findByEnvironmentNameVdc(environment.getName(), "vdc");
    assertNotNull(environment);
    assertNotNull(environment.getId());
  }
  /**
   * Test the load method.
   *
   * @throws AlreadyExistsEntityException
   * @throws InvalidEntityException
   */
  @Test
  public void testDeleteNoTiers() throws InvalidEntityException, AlreadyExistsEntityException {

    Environment environment = new Environment();
    environment.setName(ENVIRONMENT_NAME);
    environment.setDescription("description");
    environment.setOrg(ORG);
    environment.setVdc("vdc");
    environment = environmentDao.create(environment);
    environmentDao.remove(environment);
    try {
      environmentDao.findByEnvironmentNameVdc(ENVIRONMENT_NAME, "vdc");
      fail("Should have thrown an EntityNotFoundException because the environment does not exit!");
    } catch (EntityNotFoundException e) {

    }
  }