private String nameFor(String namePattern,int index,Object[] parameters){
  String finalPattern=namePattern.replaceAll("\\{index\\}",Integer.toString(index));
  String name=MessageFormat.format(finalPattern,parameters);
  return "[" + name + "]";
}

private String nameFor ( String namePattern , int index , Object [ ] parameters ) { String finalPattern = namePattern . replaceAll ( "\\{index\\}" , Integer . toString ( index ) ) ; String name = MessageFormat . format ( finalPattern , parameters ) ; return "[" + name + "]" ; }
implements behavior from : org . junit . runners . parameterized
