ParsingUtils { public static String trimLeadingWhitespace(final String str, final int max) { int pos = Math.min(getLeadingWhitespace(str), max); if (pos > 0) { return str.substring(pos); } else { return str; } }  static boolean fileMatchesExtension(final File file,
            final String targetExtension); static String formatSampleText(final List<String> lines,
            final int maxTrim); static int getMinWhitespace(final List<String> lines); static int getLeadingWhitespace(final String str); static String trimLeadingWhitespace(final String str, final int max); static String assertFieldHasContent(final String field,
            final String value); static boolean checkAndLogIfNoContent(String sampleId, String field, String value);  }
@Test public void trimLeadingWhitespace() { String foo = " FOO"; assertEquals(ParsingUtils.trimLeadingWhitespace(foo, 1), " FOO"); assertEquals(ParsingUtils.trimLeadingWhitespace(foo, 3), "FOO"); }