@Test(expected = InvalidEntityException.class)
public void shouldValidateUpdateTierError() throws AlreadyExistEntityException, InfrastructureException,
        QuotaExceededException, InvalidEntityException, EntityNotFoundException {

    // given
    TierDto tierDTO = new TierDto();
    tierDTO.setName("aaaa");
    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())).thenReturn(tierDTO.fromDto("vdc", "env"));
    tierResourceValidator.validateUpdate("vdc", "envName", "ddd", tierDTO);
}