ISPN-263 Handle cluster partitions

https://issues.jboss.org/browse/ISPN-263

I added one more commit with some test fixes.
I like what was proposed elsewhere that we use the MethodHandles.lookup().lookupClass() instead of hardcoding the class name.