@Test
    @MediumTest
    public void testRegEx() {
        final String page = MockedCache.readCachePage("GC2CJPF");
        assertThat(TextUtils.getMatch(page, GCConstants.PATTERN_LOGIN_NAME2, true, "???")).isEqualTo("abft");

        // test special character handling in usernames during login
        testUsername("Max\\u0026Moritz"); // JS-escaped Unicode character
        testUsername("Hello\\\"World\\\""); // JS-escaped double quote
        testUsername("Hello\\\"Max\\u0026Moritz\\\""); // combination of both
    }
The c:geo application test. It can be used for tests that require an
application and/or context.
main/src/androidTest/java/cgeo/geocaching/CgeoApplicationTest.java