ParsingUtils { public static int getLeadingWhitespace(final String str) { int pos = 0; while ((pos < str.length()) && (str.charAt(pos) == ' ')) { pos++; } return pos; }  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 getLeadingWhitespace() { assertEquals(ParsingUtils.getLeadingWhitespace("ZERO"), 0); assertEquals(ParsingUtils.getLeadingWhitespace(" THREE"), 3); }