### Question:
Configs { public static int asInt(String value) { return value != null ? Integer.parseInt(value) : 0; }  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);  }### Answer:
@Test public void getIntValueTest(){ int result = Configs.asInt("85"); assertEquals(85,result); result = Configs.asInt(null); assertEquals(0,result); try{ result = Configs.asInt("parse"); } catch (Exception e){ assertEquals("For input string: \"parse\"",e.getMessage()); } }