FileUtil { public static boolean toBoolean(String s) { return Boolean.parseBoolean(s.trim().toLowerCase()); }  static void createFile(String filename, String content); void createLib(); static boolean toBoolean(String s);  }
@Test public void testToBooleanWithSpace() { boolean result = FileUtil.toBoolean(" true"); assertEquals(true, result); }
@Test public void testToBooleanWithUpperCase() { boolean result = FileUtil.toBoolean("FALSE"); assertEquals(false, result); }