bind(OsService.class).toInstance(osService);
NodeService nodeService = mock(NodeService.class);
NodeStats nodeStats = mock(NodeStats.class);
when(nodeService.stats()).thenReturn(nodeStats);
when(nodeStats.getHostname()).thenReturn("localhost");
DiscoveryNode node = mock(DiscoveryNode.class);
when(nodeStats.getNode()).thenReturn(node);