@Test(dataProvider = "printedValues")
public void testNonEnglishLocale(String expectedString, double value, TimeUnit unit)
{

    synchronized (Locale.class) {
        Locale previous = Locale.getDefault();
        Locale.setDefault(Locale.GERMAN);
        try {
            assertEquals(new Duration(value, unit).toString(), expectedString);
        }
        finally {
            Locale.setDefault(previous);
        }
    }
}