@Test(dataProvider = "parseableValues")
public void testValueOf(String string, double expectedValue, TimeUnit expectedUnit)
{

    Duration duration = Duration.valueOf(string);
    assertEquals(duration.getUnit(), expectedUnit);
    assertEquals(duration.getValue(), expectedValue);
}