@Test
public void testFillAttribute() throws Exception {

	System.out.println("testFillAttribute()");
	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(listOfMntPts);
	Attribute filledAttribute = classInstance.fillAttribute(session, user, facility, new AttributeDefinition());
	assertTrue("A different homeMountPoint was filled than those available", ( listOfMntPts.getValue()).equals(filledAttribute.getValue()));
}