@Test
public void testChangeIntervalType() {

    when(timeInstantView.getSelectedIntervalTypeIndex()).thenReturn(0);
    TimeInstantEditor timeInstantEditor = new TimeInstantEditor(timeInstantView, timeAmountEditor);
    timeInstantEditor.init(null, changeCommand);
    timeInstantEditor.changeIntervalType();
    TimeInstant timeInstant = timeInstantEditor.getTimeInstant();
    assertEquals(timeInstant.getIntervalType(), DateIntervalType.MINUTE);
    verify(changeCommand).execute();
}