Copied directly from one of hazelcast repos and accepted as these classes are tested.