@Test
public void getDuration_finished() {

    when(history.getState()).thenReturn(STATE.FINISHED);
    when(history.getStart()).thenReturn(new Date());
    when(history.getEnd()).thenReturn(new Date());
    String duration = item.getDuration();
    assertTrue(StringUtils.isNotBlank(duration));
}