new InetSocketTransportAddress("localhost", 44200),
new InetSocketTransportAddress("localhost", 44200)
);
when(httpInfo.address()).thenReturn(boundTransportAddress);
JvmService jvmService = mock(JvmService.class);
JvmStats jvmStats = mock(JvmStats.class);
JvmStats.Mem jvmStatsMem = mock(JvmStats.Mem.class);
ByteSizeValue heapByteSizeValueMax = mock(ByteSizeValue.class);
when(heapByteSizeValueMax.bytes()).thenReturn(123456L);
when(jvmStatsMem.getHeapMax()).thenReturn(heapByteSizeValueMax);
when(jvmStatsMem.getHeapUsed()).thenReturn(heapByteSizeValueMax);
when(jvmStats.mem()).thenReturn(jvmStatsMem);
when(jvmService.stats()).thenReturn(jvmStats);
bind(JvmService.class).toInstance(jvmService);
bind(ReferenceResolver.class).to(GlobalReferenceResolver.class).asEagerSingleton();
ThreadPool threadPool = new ThreadPool(getClass().getName());