@Test
public void testFormatDurationMultipleUnits()
{

    long millis = 300;
    long seconds = 2;
    long minutes = 59;
    long hours = 23;
    long days = 999;
    long duration = millis + MILLIS_PER_SECOND * seconds + MILLIS_PER_MINUTE * minutes + MILLIS_PER_HOUR * hours + MILLIS_PER_DAY * days;
    String expectedResult = days + " Days, " + hours + " Hours, " + minutes + " Minutes, " + seconds + " Seconds, " + millis + " Milliseconds";
    String result = HerdDateUtils.formatDuration(duration);
    assertEquals(expectedResult, result);
}