@Test
public void fillAttributeWhichNotExists() throws Exception {

	System.out.println("fillAttributeWhichNotExists()");
	//testujeme scenar, kdy budeme hledat neexistujici atribut a proto ocekavame vyjimku AttrNotExists..
	when(ps.getPerunBl().getAttributesManagerBl().getAttribute(any(PerunSession.class), any(Resource.class), anyString())).thenThrow(new AttributeNotExistsException("neexistuje"));
	try {
		defShellAttr.fillAttribute(ps, new Resource(), new AttributeDefinition());
		fail();
	} catch (InternalErrorException ex) {
		assertTrue("Mela byt vyhozena vyjimka AttributeNotExistsException", (ex.getCause() instanceof AttributeNotExistsException));
	}
}