@Test
public void testPercentOfJvmHeap() throws Exception {

    underTest.setPercentOfJvmHeap(50);
    assertEquals("limit is half jvm limit", Math.round(Runtime.getRuntime().maxMemory() / 2.0), underTest.getLimit());
}