@Test
public void checkAttributeSemanticsWhichNotExists() throws Exception {

	System.out.println("checkAttributeSemanticsWhichNotExists()");
	// hledame neexistujici atribut, proto ocekavame vyjimku
	when(ps.getPerunBl().getAttributesManagerBl().getAttribute(any(PerunSession.class), any(Resource.class), anyString())).thenThrow(new AttributeNotExistsException("neexistuje"));
	final Attribute attribute = new Attribute();
	attribute.setValue("mujShell");
	try {
		defShellAttr.checkAttributeSemantics(ps, new Resource(), attribute);
		fail();
	} catch (InternalErrorException ex) {
		assertTrue("Mela byt vyhozena vyjimka AttributeNotExistsException", (ex.getCause() instanceof AttributeNotExistsException));
	}
}