StringPattern { public boolean isInitialCapitalLetter() { return (pattern & INITAL_CAPITAL_LETTER) > 0; } private  StringPattern(int pattern, int digits); boolean isAllLetter(); boolean isInitialCapitalLetter(); boolean isAllCapitalLetter(); boolean isAllLowerCaseLetter(); boolean isAllDigit(); int digits(); boolean containsPeriod(); boolean containsComma(); boolean containsSlash(); boolean containsDigit(); boolean containsHyphen(); boolean containsLetters(); static StringPattern recognize(String token);  }
@Test public void testIsInitialCapitalLetter() { assertTrue(StringPattern.recognize("Test").isInitialCapitalLetter()); assertFalse(StringPattern.recognize("tEST").isInitialCapitalLetter()); assertTrue(StringPattern.recognize("TesT").isInitialCapitalLetter()); assertTrue(StringPattern.recognize("Üäöæß").isInitialCapitalLetter()); }