Add unit test for enumeration method invocation.