@Test public synchronized void readClusterNodesStatsInfo() throws Exception { try { Client client = prepareESClientForUnitTest(); SourceClientESClient tested = new SourceClientESClient(client); String info = tested.readClusterNodesStatsInfo(null); System.out.println(info); assertStartsWith("{\"cluster_name\":\"elasticsearch\",\"nodes\":{", info); } finally { finalizeESClientForUnitTest(); } }