question: public void testNumberToStringPattern ( ) { Locale defaultLocale = Locale . getDefault ( ) ; Locale . setDefault ( Locale . US ) ; NumberConverter converter = makeConverter ( ) ; converter . setPattern ( "[0,0.0];(0,0.0)" ) ; assertEquals ( "Default Locale " + numbers [ 0 ] , "(12.0)" , converter . convert ( String . class , numbers [ 0 ] ) ) ; assertEquals ( "Default Locale " + numbers [ 1 ] , "[13.0]" , converter . convert ( String . class , numbers [ 1 ] ) ) ; converter . setLocale ( Locale . GERMAN ) ; assertEquals ( "Locale.GERMAN " + numbers [ 2 ] , "(22,0)" , converter . convert ( String . class , numbers [ 2 ] ) ) ; assertEquals ( "Locale.GERMAN " + numbers [ 3 ] , "[23,0]" , converter . convert ( String . class , numbers [ 3 ] ) ) ; Locale . setDefault ( defaultLocale ) ; }
target:  Convert Number --> String (using a Pattern, with default and specified Locales)  