@Test
public void testViewInitialization() {

    TimeAmount timeAmount = new TimeAmount(10, DateIntervalType.DAY);
    TimeAmountEditor editor = new TimeAmountEditor(timeAmountView);
    editor.init(timeAmount, changeCommand);
    verify(timeAmountView).clearIntervalTypeSelector();
    verify(timeAmountView, times(TimeAmountEditor.INTERVAL_TYPES.size())).addIntervalTypeItem(any(DateIntervalType.class));
    verify(timeAmountView).setSelectedTypeIndex(3);
    verify(timeAmountView).setQuantity(10);
}