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

    // given
    ClaudiaData claudiaData = mock(ClaudiaData.class);
    TierDto tierDto = new TierDto();
    tierDto.setName("");
    when(tierManager.load(anyString(), anyString(), anyString())).thenThrow(
            new EntityNotFoundException(Tier.class, "tier", tierDto.getName()));
    tierResourceValidator.validateCreate(claudiaData, tierDto, "vdc", "envName");
}