@Test
    public void testRegex() {
        final Pattern pattern = Pattern.compile("\\s+");
        final long start = System.currentTimeMillis();
        final Matcher matcher = pattern.matcher(data);
        final String result = matcher.replaceAll(" ").trim();
        final long end = System.currentTimeMillis();
        assertThat(result.length()).isEqualTo(EXPECTED_SIZE - 1);
        Log.d((end - start) + " ms regex");
    }
The place for the implementation to prove that the new version of replaceWhitespace is faster than
BaseUtils.replaceWhitespace()
main/src/androidTest/java/cgeo/geocaching/test/WhitespaceTest.java