Jasig/uPortal — pull request #412 by apetro (2014-08-27 16:19:30+00:00)
Title: UP-4177 richer unit test and idiomatic Groovy looping

Refactor and richer unit test for `AttributeDuplicatingPersonAttributesScript` that was introduced in #408 .

* Use idiomatic forEach in groovy ( `for (desiredName in desiredNames) {` )
* use `assertEquals` rather than Java `assert` keyword in unit test
* test the full content of the resulting attribute map against expected beyond just testing the resulting size.