public void testFormatApproximateDuration() throws Exception
{
long tenMinMillis = java.util.concurrent.TimeUnit.MINUTES.toMillis(10);
Date tenMinAgo = new Date(System.currentTimeMillis()-tenMinMillis);
PrettyTime t = new PrettyTime();
String result = t.formatApproximateDuration(tenMinAgo);
assert result.equals("10 minutes");
}
@Test
public void testCalculatePreciseDuration()