hazelcast/hazelcast — pull request #3908 by ahmetmircik (2014-10-22 14:12:32+00:00)
Title: Fix testFreeHeapPercentagePolicy test

closes https://github.com/hazelcast/hazelcast/issues/3894

Includes:
- Adds an abstraction layer with `MemoryInfoAccessor` to `java.lang.Runtime` so we can easily mock it when testing heap policies.
- Relevant refactorings.