protected void assertStartsWith(String text,String expectedStart){
  if (!text.startsWith(expectedStart)) {
    fail("[" + text + "] does not start with: ["+ expectedStart+ "]");
  }
}

protected void assertStartsWith ( String text , String expectedStart ) { if ( ! text . startsWith ( expectedStart ) ) { fail ( "[" + text + "] does not start with: [" + expectedStart + "]" ) ; } }
check that a text starts with the expected characters . .
