@Test
public void shouldValidateAbstractTier() throws EntityNotFoundException, InvalidEntityException,
        AlreadyExistEntityException, InvalidEnvironmentInstanceException {

    TierDto tierDTO = new TierDto();
    tierDTO.setName("tier1");
    tierDTO.setInitialNumberInstances(new Integer(1));
    tierDTO.setMaximumNumberInstances(new Integer(1));
    tierDTO.setMinimumNumberInstances(new Integer(1));
    tierDTO.setImage("image");
    tierDTO.setFlavour("flavor");
    when(tierManager.load(anyString(), anyString(), anyString())).thenThrow(
            new EntityNotFoundException(Tier.class, "tier", tierDTO.getName()));
    tierResourceValidator.validateCreateAbstract(tierDTO, "en");
}