@Test
public void getAttributeValue() {

	ArrayList<String> attributeValue = classInstance.getAttributeValue(sess, user, tcsMailsAttrDef).valueAsList();
	assertNotNull(attributeValue);
	//we want to be sure, that preferredEmail is first (defined by sorting in module)
	assertEquals(email1, attributeValue.get(0));
	assertEquals(email2.trim(), attributeValue.get(1)); // check if was trimmed
	assertEquals(email3, attributeValue.get(2));
	assertEquals(email4, attributeValue.get(3));
	assertEquals(email5, attributeValue.get(4));
	assertEquals(email6.trim().toLowerCase(), attributeValue.get(4)); // check if was trimmed and then equals "email5"
	assertEquals(5, attributeValue.size());
}