@Test
public void testNullInitialization() {

    TimeAmountEditor editor = new TimeAmountEditor(timeAmountView);
    editor.init(null, changeCommand);
    verify(timeAmountView).clearIntervalTypeSelector();
    verify(timeAmountView, times(TimeAmountEditor.INTERVAL_TYPES.size())).addIntervalTypeItem(any(DateIntervalType.class));
    // "0year" set by default
    verify(timeAmountView).setSelectedTypeIndex(7);
    verify(timeAmountView).setQuantity(0);
}