@Test(expected=WrongReferenceAttributeValueException.class)
public void testCheckAttributeSemanticsWrongShellFormatInvalidCharacter() throws Exception {

	System.out.println("testCheckAttributeSemanticsWrongShellFormatInvalidCharacter()");
	Attribute attributeToCheck = new Attribute();
	attributeToCheck.setValue("/");
	when(session.getPerunBl().getUsersManagerBl().getAllowedResources(any(PerunSession.class), any(Facility.class), any(User.class))).thenReturn(new ArrayList<Resource>(){{add(resource);}});
	when(session.getPerunBl().getFacilitiesManagerBl().getAssignedResources(any(PerunSession.class), any(Facility.class))).thenReturn(new ArrayList<Resource>(){{add(resource);}});
	when(session.getPerunBl().getAttributesManagerBl().getAttribute(any(PerunSession.class), any(Resource.class), anyString())).thenReturn(listOfShells);
	classInstance.checkAttributeSemantics(session, user, facility, attributeToCheck);
	fail("Wrong shell format should have thrown an exception");
}