Utilities { public static boolean stringToBoolean(String value) { boolean res = false; if (StringUtils.isNotBlank(value) && Boolean.toString(true).equalsIgnoreCase(value.trim())) { res = true; } return res; }  static boolean deleteDir(File dir); static boolean deleteOldies(File dir, int maxLifeInSeconds); static boolean deleteOldies(File dir, int maxLifeInSeconds, boolean root); static String cleanBody(String text); static String uploadFile(String urlmsg, String path, String name); static BiblioItem cleanZFNMetadata(BiblioItem item); static String getOsNameAndArch(); static boolean stringToBoolean(String value); @SuppressWarnings("rawtypes") static Object launchMethod(Object obj, Object[] args,
			String methodName); @SuppressWarnings("rawtypes") static Object launchMethod(Object obj, Object[] args,
			Class[] paramTypes, String methodName); @SuppressWarnings("rawtypes") static Method getMethod(Object obj, Class[] paramTypes,
			String methodName); static String dateToString(Date pDate, String pFormat); static boolean doubleEquals(double d1, double d2); static boolean doubleEquals(double d1, double d2, double epsilon); static List<OffsetPosition> mergePositions(List<OffsetPosition> positions1,
		List<OffsetPosition> positions2); static List<OffsetPosition> convertStringOffsetToTokenOffsetOld(
		List<OffsetPosition> stringPosition, List<LayoutToken> tokens); static List<OffsetPosition> convertStringOffsetToTokenOffset(
		List<OffsetPosition> stringPosition, List<LayoutToken> tokens); static String punctuationsSub; }
@Test public void testStringToBooleanTrue() { assertEquals( "stringToBoolean value does not match expected result", true, Utilities.stringToBoolean("true")); }
@Test public void testStringToBooleanTrue2() { assertEquals( "stringToBoolean value does not match expected result", true, Utilities.stringToBoolean(" TruE ")); }
@Test public void testStringToBooleanFalse() { assertEquals( "stringToBoolean value does not match expected result", false, Utilities.stringToBoolean("false")); }
@Test public void testStringToBooleanFalse2() { assertEquals( "stringToBoolean value does not match expected result", false, Utilities.stringToBoolean(" fAlSe ")); }
@Test public void testStringToBooleanFalse3() { assertEquals( "stringToBoolean value does not match expected result", false, Utilities.stringToBoolean(" non boolean value")); }
@Test public void testStringToBooleanBlank() { assertEquals( "stringToBoolean value does not match expected result", false, Utilities.stringToBoolean("")); }
@Test public void testStringToBooleanBlank2() { assertEquals( "stringToBoolean value does not match expected result", false, Utilities.stringToBoolean(null)); }