Minor: formatting changes
NamingEnumeration will throw a null pointer exception if it has no elements.  Added a test for this so that we can fail gracefully if the lookup doesn't find any users