ClusterCmdUtil { public static String getLogLevel() { if (logLevel.isGreaterOrEqual(Level.ERROR)) { return ""; } else if (logLevel.isGreaterOrEqual(Level.INFO)) { return "-V"; } else { return "-VV"; } }  static String getLogLevel(); static int getIndexFromNodeName(String node);  }
@Test public void testGetLogLevel() { Logger.getRootLogger().setLevel(Level.WARN); assertEquals(ClusterCmdUtil.getLogLevel(), "-V"); }