Configs { public static boolean asBoolean(String value) { return Boolean.parseBoolean(value); }  static float asFloat(String value); static int asInt(String value); static Integer asInteger(String value); static boolean asBoolean(String value); static String asString(String value); static String getSystemPropertyWithMavenPropertyAsFallback(Properties properties, String key);  }
@Test public void getBooleanValueTest(){ boolean result = Configs.asBoolean("85"); assertEquals(false,result); result = Configs.asBoolean(null); assertEquals(false,result); result = Configs.asBoolean("false"); assertEquals(false,result); result = Configs.asBoolean("true"); assertEquals(true,result); result = Configs.asBoolean("0"); assertEquals(false,result); result = Configs.asBoolean("1"); assertEquals(false,result); }