### Question:
CollatorHelper { @Nonnull @ReturnsMutableCopy public static Collator getCollatorSpaceBeforeDot (@Nullable final Locale aLocale) { final Locale aRealLocale = aLocale == null ? SystemHelper.getSystemLocale () : aLocale; return (Collator) s_aCache.getFromCache (aRealLocale).clone (); } private  CollatorHelper(); @Nonnull @ReturnsMutableCopy static Collator getCollatorSpaceBeforeDot(@Nullable final Locale aLocale); @Nonnull static EChange clearCache();  }### Answer:
@Test public void testGetCollatorSpaceBeforeDot () { final Collator c = CollatorHelper.getCollatorSpaceBeforeDot (L_DE); assertNotNull (c); final Collator c2 = CollatorHelper.getCollatorSpaceBeforeDot (L_DE); assertNotNull (c2); assertNotSame (c, c2); CommonsTestHelper.testDefaultImplementationWithEqualContentObject (c, c2); assertNotNull (CollatorHelper.getCollatorSpaceBeforeDot (new Locale ("xy", "87"))); final List <Collator> res = new CommonsVector <> (); final int nMax = 100; CommonsTestHelper.testInParallel (nMax, () -> res.add (CollatorHelper.getCollatorSpaceBeforeDot (L_EN))); assertEquals (nMax, res.size ()); for (int i = 1; i < nMax; ++i) CommonsTestHelper.testDefaultImplementationWithEqualContentObject (res.get (0), res.get (i)); }
@Test public void testSort () { final int nMax = 10000; CommonsTestHelper.testInParallel (nMax, () -> { Collator c = CollatorHelper.getCollatorSpaceBeforeDot (L_DE); assertEquals (-1, CompareHelper.compare ("1.1 a", "1.1.1 a", c)); c = CollatorHelper.getCollatorSpaceBeforeDot (L_EN); assertEquals (-1, CompareHelper.compare ("1.1 a", "1.1.1 a", c)); }); }